All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] add static declaration to non-global functions and init_module / cleanup_module fixes
@ 2007-07-17  3:56 Denis Cheng
  2007-07-17  4:07 ` Bruce Janson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Denis Cheng @ 2007-07-17  3:56 UTC (permalink / raw)
  To: kernel-janitors

switch to use module_init / module_exit macros.

To: Bruce Janson <bruce@cs.usyd.edu.au>
Cc: kernel-janitors@vger.kernel.org
Signed-off-by: Denis Cheng <crquan@gmail.com>
---
 drivers/net/wireless/wavelan.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/wavelan.c b/drivers/net/wireless/wavelan.c
index 1cf090d..a489ef4 100644
--- a/drivers/net/wireless/wavelan.c
+++ b/drivers/net/wireless/wavelan.c
@@ -4307,7 +4307,7 @@ out:
  * Insertion of the module
  * I'm now quite proud of the multi-device support.
  */
-int __init init_module(void)
+static int __init wavelan_init(void)
 {
 	int ret = -EIO;		/* Return error if no cards found */
 	int i;
@@ -4371,7 +4371,7 @@ int __init init_module(void)
 /*
  * Removal of the module
  */
-void cleanup_module(void)
+static void __exit wavelan_exit(void)
 {
 #ifdef DEBUG_MODULE_TRACE
 	printk(KERN_DEBUG "-> cleanup_module()\n");
@@ -4398,7 +4398,12 @@ void cleanup_module(void)
 	printk(KERN_DEBUG "<- cleanup_module()\n");
 #endif
 }
+
+module_init(wavelan_init);
+module_exit(wavelan_exit);
+
 #endif				/* MODULE */
+
 MODULE_LICENSE("GPL");
 
 /*
-- 
1.5.2.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-17  5:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17  3:56 [PATCH] add static declaration to non-global functions and init_module / cleanup_module fixes Denis Cheng
2007-07-17  4:07 ` Bruce Janson
2007-07-17  4:41 ` rae l
2007-07-17  5:10 ` Bruce Janson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.