tc: Make tc_match_device() static
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 12 Jan 2020 16:52:29 +0000 (17:52 +0100)
committerPaul Burton <paulburton@kernel.org>
Mon, 13 Jan 2020 18:56:03 +0000 (10:56 -0800)
Unlike its PCI counterpart, tc_match_device() was never used outside
the TURBOchannel bus code.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: Maciej W . Rozycki <macro@linux-mips.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
drivers/tc/tc-driver.c

index 16b5bae63c7490198ac07a0993603002cba8fb90..d45f2c1ff34145b0d7ed6b748ec0d25daaeaa9fa 100644 (file)
@@ -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