aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-03-09 14:10:41 -0400
committerBrian Norris <computersforpeace@gmail.com>2015-03-30 20:50:40 -0400
commit271afb4c96b70292c5eae0744e08bc2d2b5f4fae (patch)
tree81fabbfd5c9d7b087712d14afdcaa2fcf13d074d /drivers
parent318157ab1fc843b7e08b7bf1fc2c431c4da9f3ff (diff)
mtd: maps: sa1100-flash: 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> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/maps/sa1100-flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c
index ea697202935a..892ad6ac63f2 100644
--- a/drivers/mtd/maps/sa1100-flash.c
+++ b/drivers/mtd/maps/sa1100-flash.c
@@ -274,7 +274,7 @@ static int sa1100_mtd_probe(struct platform_device *pdev)
274 return err; 274 return err;
275} 275}
276 276
277static int __exit sa1100_mtd_remove(struct platform_device *pdev) 277static int sa1100_mtd_remove(struct platform_device *pdev)
278{ 278{
279 struct sa_info *info = platform_get_drvdata(pdev); 279 struct sa_info *info = platform_get_drvdata(pdev);
280 struct flash_platform_data *plat = dev_get_platdata(&pdev->dev); 280 struct flash_platform_data *plat = dev_get_platdata(&pdev->dev);
@@ -286,7 +286,7 @@ static int __exit sa1100_mtd_remove(struct platform_device *pdev)
286 286
287static struct platform_driver sa1100_mtd_driver = { 287static struct platform_driver sa1100_mtd_driver = {
288 .probe = sa1100_mtd_probe, 288 .probe = sa1100_mtd_probe,
289 .remove = __exit_p(sa1100_mtd_remove), 289 .remove = sa1100_mtd_remove,
290 .driver = { 290 .driver = {
291 .name = "sa1100-mtd", 291 .name = "sa1100-mtd",
292 }, 292 },