tc: Make tc_match_device() static
diff mbox series

Message ID 20200112165229.20567-1-geert@linux-m68k.org
State Accepted
Commit 3d9f44ef75533093250810623ec67e97e2800bbf
Headers show
Series
  • tc: Make tc_match_device() static
Related show

Commit Message

Geert Uytterhoeven Jan. 12, 2020, 4:52 p.m. UTC
Unlike its PCI counterpart, tc_match_device() was never used outside
the TURBOchannel bus code.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/tc/tc-driver.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Paul Burton Jan. 13, 2020, 7:10 p.m. UTC | #1
Hello,

Geert Uytterhoeven wrote:
> Unlike its PCI counterpart, tc_match_device() was never used outside
> the TURBOchannel bus code.

Applied to mips-next.

> commit 3d9f44ef7553
> https://git.kernel.org/mips/c/3d9f44ef7553
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Signed-off-by: Paul Burton <paulburton@kernel.org>

Thanks,
    Paul

[ This message was auto-generated; if you believe anything is incorrect
  then please email paulburton@kernel.org to report it. ]

Patch
diff mbox series

diff --git a/drivers/tc/tc-driver.c b/drivers/tc/tc-driver.c
index 16b5bae63c749019..d45f2c1ff34145b0 100644
--- a/drivers/tc/tc-driver.c
+++ b/drivers/tc/tc-driver.c
@@ -56,8 +56,8 @@  EXPORT_SYMBOL(tc_unregister_driver);
  * system is in its list of supported devices.  Returns the matching
  * tc_device_id structure or %NULL if there is no match.
  */
-const struct tc_device_id *tc_match_device(struct tc_driver *tdrv,
-					   struct tc_dev *tdev)
+static const struct tc_device_id *tc_match_device(struct tc_driver *tdrv,
+						  struct tc_dev *tdev)
 {
 	const struct tc_device_id *id = tdrv->id_table;
 
@@ -71,7 +71,6 @@  const struct tc_device_id *tc_match_device(struct tc_driver *tdrv,
 	}
 	return NULL;
 }
-EXPORT_SYMBOL(tc_match_device);
 
 /**
  * tc_bus_match - Tell if a device structure has a matching