aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-03-09 13:49:36 -0400
committerLee Jones <lee.jones@linaro.org>2015-03-23 07:47:38 -0400
commiteac8a5c91b9ec19abc770c62c375feeaceada2a4 (patch)
tree28186a1dc4a7d5596e22c875c2fc08b31117edb2 /drivers/mfd
parent7faff71bc94eb598328d315a37486f23d5febdf0 (diff)
mfd: menelaus: Remove incorrect __exit markups
Even if bus is not hot-pluggable, the devices can be unbound from the driver via sysfs, so we should not be using __exit annotations on remove() methods. The only exception is drivers registered with platform_driver_probe() which specifically disables sysfs bind/unbind attributes. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/menelaus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/menelaus.c b/drivers/mfd/menelaus.c
index 9f01aef539dd..5269ff2f29bc 100644
--- a/drivers/mfd/menelaus.c
+++ b/drivers/mfd/menelaus.c
@@ -1259,7 +1259,7 @@ fail:
1259 return err; 1259 return err;
1260} 1260}
1261 1261
1262static int __exit menelaus_remove(struct i2c_client *client) 1262static int menelaus_remove(struct i2c_client *client)
1263{ 1263{
1264 struct menelaus_chip *menelaus = i2c_get_clientdata(client); 1264 struct menelaus_chip *menelaus = i2c_get_clientdata(client);
1265 1265
@@ -1280,7 +1280,7 @@ static struct i2c_driver menelaus_i2c_driver = {
1280 .name = DRIVER_NAME, 1280 .name = DRIVER_NAME,
1281 }, 1281 },
1282 .probe = menelaus_probe, 1282 .probe = menelaus_probe,
1283 .remove = __exit_p(menelaus_remove), 1283 .remove = menelaus_remove,
1284 .id_table = menelaus_id, 1284 .id_table = menelaus_id,
1285}; 1285};
1286 1286