Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 271afb4c authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Brian Norris
Browse files

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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 318157ab
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -274,7 +274,7 @@ static int sa1100_mtd_probe(struct platform_device *pdev)
	return err;
	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 sa_info *info = platform_get_drvdata(pdev);
	struct flash_platform_data *plat = dev_get_platdata(&pdev->dev);
	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 = {
static struct platform_driver sa1100_mtd_driver = {
	.probe		= sa1100_mtd_probe,
	.probe		= sa1100_mtd_probe,
	.remove		= __exit_p(sa1100_mtd_remove),
	.remove		= sa1100_mtd_remove,
	.driver		= {
	.driver		= {
		.name	= "sa1100-mtd",
		.name	= "sa1100-mtd",
	},
	},