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>
This commit is contained in:
committed by
David S. Miller
parent
d52c1069d6
commit
a07d8ecf6b
@@ -327,7 +327,7 @@ MODULE_PARM_DESC(dma, "LANCE/PCnet ISA DMA channel (ignored for some devices)");
|
||||
MODULE_PARM_DESC(irq, "LANCE/PCnet IRQ number (ignored for some devices)");
|
||||
MODULE_PARM_DESC(lance_debug, "LANCE/PCnet debug level (0-7)");
|
||||
|
||||
int __init init_module(void)
|
||||
static int __init lance_init_module(void)
|
||||
{
|
||||
struct net_device *dev;
|
||||
int this_dev, found = 0;
|
||||
@@ -356,6 +356,7 @@ int __init init_module(void)
|
||||
return 0;
|
||||
return -ENXIO;
|
||||
}
|
||||
module_init(lance_init_module);
|
||||
|
||||
static void cleanup_card(struct net_device *dev)
|
||||
{
|
||||
@@ -368,7 +369,7 @@ static void cleanup_card(struct net_device *dev)
|
||||
kfree(lp);
|
||||
}
|
||||
|
||||
void __exit cleanup_module(void)
|
||||
static void __exit lance_cleanup_module(void)
|
||||
{
|
||||
int this_dev;
|
||||
|
||||
@@ -381,6 +382,7 @@ void __exit cleanup_module(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
module_exit(lance_cleanup_module);
|
||||
#endif /* MODULE */
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user