[PATCH] gpib: remove unused dead pnp device table code

NotiLo-A posted 1 patch 1 month, 1 week ago
drivers/gpib/hp_82341/hp_82341.c    | 9 ---------
drivers/gpib/tnt4882/tnt4882_gpib.c | 9 ---------
2 files changed, 18 deletions(-)
[PATCH] gpib: remove unused dead pnp device table code
Posted by NotiLo-A 1 month, 1 week ago
Remove #if 0 blocks containing unused pnp_device_id tables in
hp_82341 and tnt4882 drivers. The code was disabled since
introduction with a comment indicating future use that never
materialized.

Signed-off-by: NotiLo-A <danikrads@gmail.com>
---
 drivers/gpib/hp_82341/hp_82341.c    | 9 ---------
 drivers/gpib/tnt4882/tnt4882_gpib.c | 9 ---------
 2 files changed, 18 deletions(-)

diff --git a/drivers/gpib/hp_82341/hp_82341.c b/drivers/gpib/hp_82341/hp_82341.c
index 46175ba2a..ed8dcc269 100644
--- a/drivers/gpib/hp_82341/hp_82341.c
+++ b/drivers/gpib/hp_82341/hp_82341.c
@@ -800,15 +800,6 @@ static void hp_82341_detach(struct gpib_board *board)
 	hp_82341_free_private(board);
 }
 
-#if 0
-/* unused, will be needed when the driver is turned into a pnp_driver */
-static const struct pnp_device_id hp_82341_pnp_table[] = {
-	{.id = "HWP1411"},
-	{.id = ""}
-};
-MODULE_DEVICE_TABLE(pnp, hp_82341_pnp_table);
-#endif
-
 static int __init hp_82341_init_module(void)
 {
 	int ret;
diff --git a/drivers/gpib/tnt4882/tnt4882_gpib.c b/drivers/gpib/tnt4882/tnt4882_gpib.c
index 51a920e1d..f79f06ab6 100644
--- a/drivers/gpib/tnt4882/tnt4882_gpib.c
+++ b/drivers/gpib/tnt4882/tnt4882_gpib.c
@@ -1370,15 +1370,6 @@ static struct pci_driver tnt4882_pci_driver = {
 	.probe = &tnt4882_pci_probe
 };
 
-#if 0
-/* unused, will be needed when the driver is turned into a pnp_driver */
-static const struct pnp_device_id tnt4882_pnp_table[] = {
-	{.id = "NICC601"},
-	{.id = ""}
-};
-MODULE_DEVICE_TABLE(pnp, tnt4882_pnp_table);
-#endif
-
 #ifdef CONFIG_GPIB_PCMCIA
 static struct gpib_interface ni_pcmcia_interface;
 static struct gpib_interface ni_pcmcia_accel_interface;
-- 
2.54.0