]> err.no Git - linux-2.6/commitdiff
drivers/net/arcnet/capmode.c: replace init_module&cleanup_module with module_init...
authorJon Schindler <jkschind@gmail.com>
Thu, 6 Mar 2008 02:49:51 +0000 (18:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Mar 2008 02:49:51 +0000 (18:49 -0800)
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>
drivers/net/arcnet/capmode.c

index cc4610db6395f9e743e16ff374fd88f860d5dbe2..02cb8f1c11484b23460100c85f60faec62bd3ea5 100644 (file)
@@ -80,17 +80,19 @@ void arcnet_cap_init(void)
 
 #ifdef MODULE
 
-int __init init_module(void)
+static int __init capmode_module_init(void)
 {
        printk(VERSION);
        arcnet_cap_init();
        return 0;
 }
 
-void cleanup_module(void)
+static void __exit capmode_module_exit(void)
 {
        arcnet_unregister_proto(&capmode_proto);
 }
+module_init(capmode_module_init);
+module_exit(capmode_module_exit);
 
 MODULE_LICENSE("GPL");
 #endif                         /* MODULE */