aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-07-10 22:01:10 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-07-16 09:26:45 -0400
commit706c96b7208b6b4f070b7f5c104ea917c48043f5 (patch)
tree7fb1c5265985e9ea32d170ba6885e04e71480d73 /drivers/mfd
parent46b65a8fe63ece3b01d7d0c5e3bb5b9f478c44d5 (diff)
mfd: Remove __devexit annotation for pm80x_deinit
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/88pm80x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/88pm80x.c b/drivers/mfd/88pm80x.c
index 62da342553bd..cd0bf527d764 100644
--- a/drivers/mfd/88pm80x.c
+++ b/drivers/mfd/88pm80x.c
@@ -91,7 +91,7 @@ err_regmap_init:
91} 91}
92EXPORT_SYMBOL_GPL(pm80x_init); 92EXPORT_SYMBOL_GPL(pm80x_init);
93 93
94int __devexit pm80x_deinit(struct i2c_client *client) 94int pm80x_deinit(struct i2c_client *client)
95{ 95{
96 struct pm80x_chip *chip = i2c_get_clientdata(client); 96 struct pm80x_chip *chip = i2c_get_clientdata(client);
97 97