mfd: Remove __devexit annotation for pm80x_deinit
authorAxel Lin <axel.lin@gmail.com>
Wed, 11 Jul 2012 02:01:10 +0000 (10:01 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 16 Jul 2012 13:26:45 +0000 (15:26 +0200)
This fixes below section mismatch warning:

  LD      drivers/mfd/built-in.o
WARNING: drivers/mfd/built-in.o(.devinit.text+0x46c): Section mismatch in reference from the function pm800_probe() to the function .devexit.text:pm80x_deinit()
The function __devinit pm800_probe() references
a function __devexit pm80x_deinit().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
pm80x_deinit() so it may be used outside an exit section.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/88pm80x.c
include/linux/mfd/88pm80x.h

index 62da342553bd66c30011b222c0bda17f3559f4d1..cd0bf527d7647ab706c38ba42a478751db047315 100644 (file)
@@ -91,7 +91,7 @@ err_regmap_init:
 }
 EXPORT_SYMBOL_GPL(pm80x_init);
 
-int __devexit pm80x_deinit(struct i2c_client *client)
+int pm80x_deinit(struct i2c_client *client)
 {
        struct pm80x_chip *chip = i2c_get_clientdata(client);
 
index 103f06d1892d261e57106545863702d969c830e7..a0ca0dca12443ac66099077265e1816253688ca3 100644 (file)
@@ -365,5 +365,5 @@ static inline int pm80x_dev_resume(struct device *dev)
 
 extern int pm80x_init(struct i2c_client *client,
                             const struct i2c_device_id *id) __devinit;
-extern int pm80x_deinit(struct i2c_client *client) __devexit;
+extern int pm80x_deinit(struct i2c_client *client);
 #endif /* __LINUX_MFD_88PM80X_H */