[PATCH 1/2] gpib: Remove useless code
From: Dave Penkler
Date: Sat Apr 11 2026 - 06:22:27 EST
This code is a hangover from an earlier approach in the
driver where the driver modules were called gpibXX
It no longer serves any purpose.
Signed-off-by: Dave Penkler <dpenkler@xxxxxxxxx>
---
drivers/gpib/common/gpib_os.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/gpib/common/gpib_os.c b/drivers/gpib/common/gpib_os.c
index 2b4ec6aa893b..fca181b8c749 100644
--- a/drivers/gpib/common/gpib_os.c
+++ b/drivers/gpib/common/gpib_os.c
@@ -544,13 +544,6 @@ int ibopen(struct inode *inode, struct file *filep)
priv = filep->private_data;
init_gpib_file_private((struct gpib_file_private *)filep->private_data);
- if (board->use_count == 0) {
- int retval;
-
- retval = request_module("gpib%i", minor);
- if (retval)
- dev_dbg(board->gpib_dev, "request module returned %i\n", retval);
- }
if (board->interface) {
if (!try_module_get(board->provider_module)) {
dev_err(board->gpib_dev, "try_module_get() failed\n");
--
2.53.0