summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/8390/wd.c
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/8390/wd.c
parentd52c1069d6589abb46df64193d32316613be8c06 (diff)
downloadlinux-a07d8ecf6b39cac4c708f5a64cb5c72ffe862e5f.tar.gz
linux-a07d8ecf6b39cac4c708f5a64cb5c72ffe862e5f.tar.bz2
linux-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/8390/wd.c')
-rw-r--r--drivers/net/ethernet/8390/wd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/8390/wd.c b/drivers/net/ethernet/8390/wd.c
index c834123560f1..263a942d81fa 100644
--- a/drivers/net/ethernet/8390/wd.c
+++ b/drivers/net/ethernet/8390/wd.c
@@ -519,7 +519,7 @@ MODULE_LICENSE("GPL");
/* This is set up so that only a single autoprobe takes place per call.
ISA device autoprobes on a running machine are not recommended. */
-int __init init_module(void)
+static int __init wd_init_module(void)
{
struct net_device *dev;
int this_dev, found = 0;
@@ -548,6 +548,7 @@ int __init init_module(void)
return 0;
return -ENXIO;
}
+module_init(wd_init_module);
static void cleanup_card(struct net_device *dev)
{
@@ -556,8 +557,7 @@ static void cleanup_card(struct net_device *dev)
iounmap(ei_status.mem);
}
-void __exit
-cleanup_module(void)
+static void __exit wd_cleanup_module(void)
{
int this_dev;
@@ -570,4 +570,5 @@ cleanup_module(void)
}
}
}
+module_exit(wd_cleanup_module);
#endif /* MODULE */