Skip to contentSkip to conversation

rtc: mxc_v2: remove __exit annotation

PATCH Applied Arnd Bergmann 2 participants 2 messages Jan 2, 2018 – Jan 11, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/rtc/rtc-mxc_v2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-mxc_v2.c +1 -1
index b637095b0716..77a065e23a84 100644
@@ -368,7 +368,7 @@ static int mxc_rtc_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static int __exit mxc_rtc_remove(struct platform_device *pdev)
+static int mxc_rtc_remove(struct platform_device *pdev)
 {
 	struct mxc_rtc_data *pdata = platform_get_drvdata(pdev);
 
Signature · 1 line
2.9.0
#1 lore raw
Quoted 4 lines · Arnd Bergmann

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

Quoted 9 lines

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")
---
 drivers/rtc/rtc-mxc_v2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 3 lines
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com