Skip to content

Commit d784372

Browse files
ralfbaechleLinus Torvalds
authored andcommitted
[PATCH] i2o_exec_exit and i2o_driver_exit should not be __exit.
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>
1 parent 39f0722 commit d784372

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/message/i2o/core.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ extern struct i2o_driver i2o_exec_driver;
1818
extern int i2o_exec_lct_get(struct i2o_controller *);
1919

2020
extern int __init i2o_exec_init(void);
21-
extern void __exit i2o_exec_exit(void);
21+
extern void i2o_exec_exit(void);
2222

2323
/* driver */
2424
extern struct bus_type i2o_bus_type;
2525

2626
extern int i2o_driver_dispatch(struct i2o_controller *, u32);
2727

2828
extern int __init i2o_driver_init(void);
29-
extern void __exit i2o_driver_exit(void);
29+
extern void i2o_driver_exit(void);
3030

3131
/* PCI */
3232
extern int __init i2o_pci_init(void);

‎drivers/message/i2o/driver.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ int __init i2o_driver_init(void)
362362
*
363363
* Unregisters the I2O bus and frees driver array.
364364
*/
365-
void __exit i2o_driver_exit(void)
365+
void i2o_driver_exit(void)
366366
{
367367
bus_unregister(&i2o_bus_type);
368368
kfree(i2o_drivers);

‎drivers/message/i2o/exec-osm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ int __init i2o_exec_init(void)
595595
*
596596
* Unregisters the Exec OSM from the I2O core.
597597
*/
598-
void __exit i2o_exec_exit(void)
598+
void i2o_exec_exit(void)
599599
{
600600
i2o_driver_unregister(&i2o_exec_driver);
601601
};

0 commit comments

Comments
 (0)