Skip to content

Commit 0ebd1c1

Browse files
Jon SchindlerJeff Garzik
authored andcommitted
/drivers/net/arcnet/com20020.c replaced 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: Jeff Garzik <jeff@garzik.org>
1 parent b32dac0 commit 0ebd1c1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎drivers/net/arcnet/com20020.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,15 @@ MODULE_LICENSE("GPL");
348348

349349
#ifdef MODULE
350350

351-
int init_module(void)
351+
static int __init com20020_module_init(void)
352352
{
353353
BUGLVL(D_NORMAL) printk(VERSION);
354354
return 0;
355355
}
356356

357-
void cleanup_module(void)
357+
static void __exit com20020_module_exit(void)
358358
{
359359
}
360-
360+
module_init(com20020_module_init);
361+
module_exit(com20020_module_exit);
361362
#endif /* MODULE */

0 commit comments

Comments
 (0)