mtd: maps: sa1100-flash: remove incorrect __exit markups
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Apr 22 10:59:05 PDT 2015
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=271afb4c96b70292c5eae0744e08bc2d2b5f4fae
Commit: 271afb4c96b70292c5eae0744e08bc2d2b5f4fae
Parent: 318157ab1fc843b7e08b7bf1fc2c431c4da9f3ff
Author: Dmitry Torokhov <dmitry.torokhov at gmail.com>
AuthorDate: Mon Mar 9 11:10:41 2015 -0700
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Mar 30 17:50:40 2015 -0700
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 at gmail.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/maps/sa1100-flash.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c
index ea69720..892ad6a 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)
return err;
}
-static int __exit sa1100_mtd_remove(struct platform_device *pdev)
+static int sa1100_mtd_remove(struct platform_device *pdev)
{
struct sa_info *info = platform_get_drvdata(pdev);
struct flash_platform_data *plat = dev_get_platdata(&pdev->dev);
@@ -286,7 +286,7 @@ static int __exit sa1100_mtd_remove(struct platform_device *pdev)
static struct platform_driver sa1100_mtd_driver = {
.probe = sa1100_mtd_probe,
- .remove = __exit_p(sa1100_mtd_remove),
+ .remove = sa1100_mtd_remove,
.driver = {
.name = "sa1100-mtd",
},
More information about the linux-mtd-cvs
mailing list