diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-03-01 18:33:23 -0500 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-03-08 19:32:31 -0500 |
commit | b9de1a1dae8c78de05a59e40632aa8241ef78e1a (patch) | |
tree | 28598a94561d548bf42300d2ed137e8a54572b2f | |
parent | ff764b88e63a097a6a8383f0f1f76e7fa5a5e096 (diff) |
rtc: omap: remove incorrect __exit markups
Even if bus is not hot-pluggable, 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>
Reviewed-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r-- | drivers/rtc/rtc-omap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index 73594f38c453..66c43a3ded24 100644 --- a/drivers/rtc/rtc-omap.c +++ b/drivers/rtc/rtc-omap.c | |||
@@ -844,7 +844,7 @@ err: | |||
844 | return ret; | 844 | return ret; |
845 | } | 845 | } |
846 | 846 | ||
847 | static int __exit omap_rtc_remove(struct platform_device *pdev) | 847 | static int omap_rtc_remove(struct platform_device *pdev) |
848 | { | 848 | { |
849 | struct omap_rtc *rtc = platform_get_drvdata(pdev); | 849 | struct omap_rtc *rtc = platform_get_drvdata(pdev); |
850 | u8 reg; | 850 | u8 reg; |
@@ -964,7 +964,7 @@ static void omap_rtc_shutdown(struct platform_device *pdev) | |||
964 | 964 | ||
965 | static struct platform_driver omap_rtc_driver = { | 965 | static struct platform_driver omap_rtc_driver = { |
966 | .probe = omap_rtc_probe, | 966 | .probe = omap_rtc_probe, |
967 | .remove = __exit_p(omap_rtc_remove), | 967 | .remove = omap_rtc_remove, |
968 | .shutdown = omap_rtc_shutdown, | 968 | .shutdown = omap_rtc_shutdown, |
969 | .driver = { | 969 | .driver = { |
970 | .name = "omap_rtc", | 970 | .name = "omap_rtc", |