All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging/et131x:  adding __init/__exit macros
@ 2009-09-28 23:34 ` Peter Huewe
  0 siblings, 0 replies; 14+ messages in thread
From: Peter Huewe @ 2009-09-28 23:34 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Alan Cox, devel, linux-kernel, Jiri Kosina, kernel-janitors

From: Peter Huewe <peterhuewe@gmx.de>

Trivial patch which adds the __init/__exit macros to the module_init/
module_exit functions of ./staging/et131x/et131x_initpci.c

Greg, please have a look at the small patch and either pull it through
your staging tree, or please ack' it so Jiri can pull it through the trivial tree.

linux version v2.6.32-rc1 - linus git tree, Di 29. Sep 01:10:18 CEST 2009

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
diff --git a/drivers/staging/et131x/et131x_initpci.c b/drivers/staging/et131x/et131x_initpci.c
index 9db2056..5ec0d5b 100644
--- a/drivers/staging/et131x/et131x_initpci.c
+++ b/drivers/staging/et131x/et131x_initpci.c
@@ -989,7 +989,7 @@ static struct pci_driver et131x_driver = {
  *
  * Returns 0 on success, errno on failure (as defined in errno.h)
  */
-static int et131x_init_module(void)
+static int __init et131x_init_module(void)
 {
 	if (et131x_speed_set < PARM_SPEED_DUPLEX_MIN ||
 	    et131x_speed_set > PARM_SPEED_DUPLEX_MAX) {
@@ -1002,7 +1002,7 @@ static int et131x_init_module(void)
 /**
  * et131x_cleanup_module - The entry point called on driver cleanup
  */
-static void et131x_cleanup_module(void)
+static void __exit et131x_cleanup_module(void)
 {
 	pci_unregister_driver(&et131x_driver);
 }

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

end of thread, other threads:[~2009-10-19 22:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-28 23:34 [PATCH] staging/et131x: adding __init/__exit macros Peter Huewe
2009-09-28 23:34 ` Peter Huewe
2009-09-29  9:10 ` Jiri Kosina
2009-09-29  9:10   ` Jiri Kosina
2009-09-29 15:30   ` Greg KH
2009-09-29 15:30     ` Greg KH
2009-10-19 15:24   ` Peter Hüwe
2009-10-19 15:24     ` Peter Hüwe
2009-10-19 21:43     ` Greg KH
2009-10-19 21:43       ` Greg KH
2009-10-19 22:04       ` Peter Huewe
2009-10-19 22:04         ` Peter Huewe
2009-09-29 10:57 ` Alan Cox
2009-09-29 10:57   ` Alan Cox

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.