From: Arnd Bergmann Date: Tue, 2 Jan 2018 09:43:33 +0000 (+0100) Subject: rtc: mxc_v2: remove __exit annotation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=db00d38e7b59ae913cfa10f1c40bf656a969fb82;p=linux.git 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 Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-mxc_v2.c b/drivers/rtc/rtc-mxc_v2.c index eecc0cf9ee95f..784221dfc9c7a 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) 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);