drivers/net/appletalk/ltpc.c: replace init_module&cleanup_module with module_init&module_exit
Replaced init_module and cleanup_module with static functions and module_init/module_exit. Signed-off-by: Jon Schindler <jkschind@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a4e2acf01a
commit
32c9874759
@@ -1252,7 +1252,7 @@ module_param(irq, int, 0);
|
|||||||
module_param(dma, int, 0);
|
module_param(dma, int, 0);
|
||||||
|
|
||||||
|
|
||||||
int __init init_module(void)
|
static int __init ltpc_module_init(void)
|
||||||
{
|
{
|
||||||
if(io == 0)
|
if(io == 0)
|
||||||
printk(KERN_NOTICE
|
printk(KERN_NOTICE
|
||||||
@@ -1263,6 +1263,7 @@ int __init init_module(void)
|
|||||||
return PTR_ERR(dev_ltpc);
|
return PTR_ERR(dev_ltpc);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
module_init(ltpc_module_init);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void __exit ltpc_cleanup(void)
|
static void __exit ltpc_cleanup(void)
|
||||||
|
Reference in New Issue
Block a user