power: supply: twl4030_charger: 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: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
Dmitry Torokhov 2017-03-01 15:44:53 -08:00 коммит произвёл Sebastian Reichel
Родитель f7a388d6cd
Коммит 420b2d443b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1117,7 +1117,7 @@ fail:
return ret; return ret;
} }
static int __exit twl4030_bci_remove(struct platform_device *pdev) static int twl4030_bci_remove(struct platform_device *pdev)
{ {
struct twl4030_bci *bci = platform_get_drvdata(pdev); struct twl4030_bci *bci = platform_get_drvdata(pdev);
@ -1148,11 +1148,11 @@ MODULE_DEVICE_TABLE(of, twl_bci_of_match);
static struct platform_driver twl4030_bci_driver = { static struct platform_driver twl4030_bci_driver = {
.probe = twl4030_bci_probe, .probe = twl4030_bci_probe,
.remove = twl4030_bci_remove,
.driver = { .driver = {
.name = "twl4030_bci", .name = "twl4030_bci",
.of_match_table = of_match_ptr(twl_bci_of_match), .of_match_table = of_match_ptr(twl_bci_of_match),
}, },
.remove = __exit_p(twl4030_bci_remove),
}; };
module_platform_driver(twl4030_bci_driver); module_platform_driver(twl4030_bci_driver);