All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/9] /drivers/net/8390.c replaced init_module&cleanup_module
@ 2008-02-28  7:30 ` Jon Schindler
  0 siblings, 0 replies; 8+ messages in thread
From: Jon Schindler @ 2008-02-28  7:30 UTC (permalink / raw)
  To: linux-kernel, trivial, kernel-janitors

Replaced init_module and cleanup_module with static functions and module_init/module_exit.

Signed-off-by: Jon Schindler <jkschind@gmail.com>
---
diff --git a/drivers/net/ac3200.c b/drivers/net/ac3200.c
index 5136d94..b144863 100644
--- a/drivers/net/ac3200.c
+++ b/drivers/net/ac3200.c
@@ -369,7 +369,7 @@ MODULE_PARM_DESC(mem, "Memory base address(es)");
 MODULE_DESCRIPTION("Ansel AC3200 EISA ethernet driver");
 MODULE_LICENSE("GPL");
 
-int __init init_module(void)
+static int __init ac3200_module_init(void)
 {
 	struct net_device *dev;
 	int this_dev, found = 0;
@@ -404,8 +404,7 @@ static void cleanup_card(struct net_device *dev)
 	iounmap(ei_status.mem);
 }
 
-void __exit
-cleanup_module(void)
+static void __exit ac3200_module_exit(void)
 {
 	int this_dev;
 
@@ -418,4 +417,6 @@ cleanup_module(void)
 		}
 	}
 }
+module_init(ac3200_module_init);
+module_exit(ac3200_module_exit);
 #endif /* MODULE */

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

end of thread, other threads:[~2008-03-01  2:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-28  7:30 [PATCH 2/9] /drivers/net/8390.c replaced init_module&cleanup_module Jon Schindler
2008-02-28  7:30 ` [PATCH 2/9] /drivers/net/8390.c replaced init_module&cleanup_module with module_init&module_exit Jon Schindler
2008-03-01  1:24 ` [PATCH 2/9] /drivers/net/8390.c replaced Andrew Morton
2008-03-01  1:24   ` [PATCH 2/9] /drivers/net/8390.c replaced init_module&cleanup_module with module_init&module_exit Andrew Morton
2008-03-01  2:32   ` [PATCH 2/9] /drivers/net/8390.c replaced init_module&cleanup_module Jon Schindler
2008-03-01  2:32     ` [PATCH 2/9] /drivers/net/8390.c replaced init_module&cleanup_module with module_init&module_exit Jon Schindler
2008-03-01  2:46     ` [PATCH 2/9] /drivers/net/8390.c replaced init_module&cleanup_module Jon Schindler
2008-03-01  2:46       ` [PATCH 2/9] /drivers/net/8390.c replaced init_module&cleanup_module with module_init&module_exit Jon Schindler

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.