From: NotiLo-A <danikrads@gmail.com>
To: dpenkler@gmail.com
Cc: linux-kernel@vger.kernel.org, NotiLo-A <danikrads@gmail.com>
Subject: [PATCH] gpib: remove unused dead pnp device table code
Date: Mon, 4 May 2026 00:18:11 +0300 [thread overview]
Message-ID: <20260503211811.64430-1-danikrads@gmail.com> (raw)
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
reply other threads:[~2026-05-03 21:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260503211811.64430-1-danikrads@gmail.com \
--to=danikrads@gmail.com \
--cc=dpenkler@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox