Skip to contentSkip to conversation

tc: Make tc_match_device() static

PATCH Applied Geert Uytterhoeven 2 participants 2 messages Jan 12, 2020 – Jan 13, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tc: Make tc_match_device() static

Unlike its PCI counterpart, tc_match_device() was never used outside the TURBOchannel bus code.

---
 drivers/tc/tc-driver.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/tc/tc-driver.c +2 -3
index 16b5bae63c749019..d45f2c1ff34145b0 100644
@@ -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
Signature · 1 line
2.17.1
Applied
#1 lore raw

Hello,

Quoted 2 lines · Geert Uytterhoeven

Unlike its PCI counterpart, tc_match_device() was never used outside the TURBOchannel bus code.

Applied to mips-next.

Quoted 5 lines

commit 3d9f44ef7553
https://git.kernel.org/mips/c/3d9f44ef7553

Thanks,
Paul

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