aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2013-02-19 17:50:10 -0500
committerWolfram Sang <wolfram@the-dreams.de>2013-02-21 18:25:40 -0500
commit0a6d2246790512c88931ddbfedf3fd48e0979093 (patch)
treeab5668f46f28efaf1a3e6ffec3c95fc97e112b8a /drivers/i2c
parent6beaddf243b2d4bbc9165fbd89429fa1a7526af1 (diff)
i2c: pxa: remove incorrect __exit annotations
The remove() methods should not be marked __exit unless we are using platform_driver_probe() which disables unbinding device from driver via sysfs. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-pxa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
index 1034d93fb838..4a79e768a4d8 100644
--- a/drivers/i2c/busses/i2c-pxa.c
+++ b/drivers/i2c/busses/i2c-pxa.c
@@ -1215,7 +1215,7 @@ emalloc:
1215 return ret; 1215 return ret;
1216} 1216}
1217 1217
1218static int __exit i2c_pxa_remove(struct platform_device *dev) 1218static int i2c_pxa_remove(struct platform_device *dev)
1219{ 1219{
1220 struct pxa_i2c *i2c = platform_get_drvdata(dev); 1220 struct pxa_i2c *i2c = platform_get_drvdata(dev);
1221 1221
@@ -1269,7 +1269,7 @@ static const struct dev_pm_ops i2c_pxa_dev_pm_ops = {
1269 1269
1270static struct platform_driver i2c_pxa_driver = { 1270static struct platform_driver i2c_pxa_driver = {
1271 .probe = i2c_pxa_probe, 1271 .probe = i2c_pxa_probe,
1272 .remove = __exit_p(i2c_pxa_remove), 1272 .remove = i2c_pxa_remove,
1273 .driver = { 1273 .driver = {
1274 .name = "pxa2xx-i2c", 1274 .name = "pxa2xx-i2c",
1275 .owner = THIS_MODULE, 1275 .owner = THIS_MODULE,