Skip to content

Commit 32c9874

Browse files
Jon Schindlerdavem330
authored andcommitted
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>
1 parent a4e2acf commit 32c9874

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/net/appletalk/ltpc.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ module_param(irq, int, 0);
12521252
module_param(dma, int, 0);
12531253

12541254

1255-
int __init init_module(void)
1255+
static int __init ltpc_module_init(void)
12561256
{
12571257
if(io == 0)
12581258
printk(KERN_NOTICE
@@ -1263,6 +1263,7 @@ int __init init_module(void)
12631263
return PTR_ERR(dev_ltpc);
12641264
return 0;
12651265
}
1266+
module_init(ltpc_module_init);
12661267
#endif
12671268

12681269
static void __exit ltpc_cleanup(void)

0 commit comments

Comments
 (0)