[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200803042319.m24NJUqw002721@imap1.linux-foundation.org>
Date: Tue, 04 Mar 2008 15:19:29 -0800
From: akpm@...ux-foundation.org
To: jeff@...zik.org
Cc: netdev@...r.kernel.org, akpm@...ux-foundation.org,
jkschind@...il.com
Subject: [patch 12/17] drivers/net/arcnet/capmode.c: replace init_module&cleanup_module with module_init&module_exit
From: Jon Schindler <jkschind@...il.com>
Replaced init_module and cleanup_module with static functions and
module_init/module_exit.
Signed-off-by: Jon Schindler <jkschind@...il.com>
Cc: Jeff Garzik <jeff@...zik.org>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
drivers/net/arcnet/capmode.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff -puN drivers/net/arcnet/capmode.c~drivers-net-arcnet-capmodec-replace-init_modulecleanup_module-with-module_initmodule_exit drivers/net/arcnet/capmode.c
--- a/drivers/net/arcnet/capmode.c~drivers-net-arcnet-capmodec-replace-init_modulecleanup_module-with-module_initmodule_exit
+++ a/drivers/net/arcnet/capmode.c
@@ -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 */
_
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists