diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-08-03 13:40:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-03 14:05:26 +0200 |
commit | a07d8ecf6b39cac4c708f5a64cb5c72ffe862e5f (patch) | |
tree | 5f77238f1a38ab15347a23f70ef3d8149d66931d /drivers/net/ethernet/8390/wd.c | |
parent | wan: hostess_sv11: use module_init/module_exit helpers (diff) | |
download | linux-a07d8ecf6b39cac4c708f5a64cb5c72ffe862e5f.tar.xz 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.c | 7 |
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 */ |