aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-01-02 04:43:33 -0500
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2018-01-11 18:20:40 -0500
commitdb00d38e7b59ae913cfa10f1c40bf656a969fb82 (patch)
treef798efec66f23fc8f51e564dda029c9ab04b0ce5 /drivers/rtc
parenta9c705a8bd52d8a5205cc779d6e64af4321a9fa8 (diff)
rtc: mxc_v2: remove __exit annotation
The mxc_rtc_remove is incorrectly annotated as __exit: `mxc_rtc_remove' referenced in section `.data' of drivers/rtc/rtc-mxc_v2.o: defined in discarded section `.exit.text' of drivers/rtc/rtc-mxc_v2.o This should not be done, as devices can be dynamically bound and unbound to a driver. Fixes: 54c47014b474 ("rtc: add mxc driver for i.MX53 SRTC") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-mxc_v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-mxc_v2.c b/drivers/rtc/rtc-mxc_v2.c
index eecc0cf9ee95..784221dfc9c7 100644
--- a/drivers/rtc/rtc-mxc_v2.c
+++ b/drivers/rtc/rtc-mxc_v2.c
@@ -365,7 +365,7 @@ static int mxc_rtc_probe(struct platform_device *pdev)
365 return 0; 365 return 0;
366} 366}
367 367
368static int __exit mxc_rtc_remove(struct platform_device *pdev) 368static int mxc_rtc_remove(struct platform_device *pdev)
369{ 369{
370 struct mxc_rtc_data *pdata = platform_get_drvdata(pdev); 370 struct mxc_rtc_data *pdata = platform_get_drvdata(pdev);
371 371