]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] i2o_exec_exit and i2o_driver_exit should not be __exit.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 13 Dec 2006 08:33:53 +0000 (00:33 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Wed, 13 Dec 2006 17:05:47 +0000 (09:05 -0800)
i2o_exec_exit and i2o_driver_exit were marked as __exit which is a bug
because both are invoked from __init and __exit functions.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/message/i2o/core.h
drivers/message/i2o/driver.c
drivers/message/i2o/exec-osm.c

index dc388a3ff5e0f34752789c4e8e56325344ebea77..cbe384fb848c97078d609a751d34a8d0f627cfa7 100644 (file)
@@ -18,7 +18,7 @@ extern struct i2o_driver i2o_exec_driver;
 extern int i2o_exec_lct_get(struct i2o_controller *);
 
 extern int __init i2o_exec_init(void);
-extern void __exit i2o_exec_exit(void);
+extern void i2o_exec_exit(void);
 
 /* driver */
 extern struct bus_type i2o_bus_type;
@@ -26,7 +26,7 @@ extern struct bus_type i2o_bus_type;
 extern int i2o_driver_dispatch(struct i2o_controller *, u32);
 
 extern int __init i2o_driver_init(void);
-extern void __exit i2o_driver_exit(void);
+extern void i2o_driver_exit(void);
 
 /* PCI */
 extern int __init i2o_pci_init(void);
index 9104b65ff70f0e85de7522deddd017313159edf6..d3235f213c8933fe72bf77d464e64a69b8789b09 100644 (file)
@@ -362,7 +362,7 @@ int __init i2o_driver_init(void)
  *
  *     Unregisters the I2O bus and frees driver array.
  */
-void __exit i2o_driver_exit(void)
+void i2o_driver_exit(void)
 {
        bus_unregister(&i2o_bus_type);
        kfree(i2o_drivers);
index 902753b2c66101858fe295e7bc97c24cff674389..a539d3b61e7680ee739b830a6f2319e7f2ade102 100644 (file)
@@ -595,7 +595,7 @@ int __init i2o_exec_init(void)
  *
  *     Unregisters the Exec OSM from the I2O core.
  */
-void __exit i2o_exec_exit(void)
+void i2o_exec_exit(void)
 {
        i2o_driver_unregister(&i2o_exec_driver);
 };