aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/3com
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-08-03 13:40:51 +0200
committerDavid S. Miller <davem@davemloft.net>2021-08-03 13:05:26 +0100
commita07d8ecf6b39cac4c708f5a64cb5c72ffe862e5f (patch)
tree5f77238f1a38ab15347a23f70ef3d8149d66931d /drivers/net/ethernet/3com
parentwan: hostess_sv11: use module_init/module_exit helpers (diff)
downloadlinux-dev-a07d8ecf6b39cac4c708f5a64cb5c72ffe862e5f.tar.xz
linux-dev-a07d8ecf6b39cac4c708f5a64cb5c72ffe862e5f.zip
ethernet: isa: convert to module_init/module_exit
There are a couple of ISA ethernet drivers that use the old init_module/cleanup_module function names for the main entry points, nothing else uses those any more. Change them to the documented method with module_init() and module_exit() markers next to static functions. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/3com')
-rw-r--r--drivers/net/ethernet/3com/3c515.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/3com/3c515.c b/drivers/net/ethernet/3com/3c515.c
index 47b4215bb93b..8d90fed5d33e 100644
--- a/drivers/net/ethernet/3com/3c515.c
+++ b/drivers/net/ethernet/3com/3c515.c
@@ -407,7 +407,7 @@ MODULE_PARM_DESC(max_interrupt_work, "3c515 maximum events handled per interrupt
/* we will need locking (and refcounting) if we ever use it for more */
static LIST_HEAD(root_corkscrew_dev);
-int init_module(void)
+static int corkscrew_init_module(void)
{
int found = 0;
if (debug >= 0)
@@ -416,6 +416,7 @@ int init_module(void)
found++;
return found ? 0 : -ENODEV;
}
+module_init(corkscrew_init_module);
#else
struct net_device *tc515_probe(int unit)