Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db00d38e authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Alexandre Belloni
Browse files

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: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent a9c705a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -365,7 +365,7 @@ static int mxc_rtc_probe(struct platform_device *pdev)
	return 0;
	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);
	struct mxc_rtc_data *pdata = platform_get_drvdata(pdev);