Re: [PATCH] rtc: mxc_v2: remove __exit annotation

2018-01-11 Thread Alexandre Belloni
On 02/01/2018 at 10:43:33 +0100, Arnd Bergmann wrote: > 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 d

[PATCH] rtc: mxc_v2: remove __exit annotation

2018-01-02 Thread 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 This should not be done, as devices can be dynamically bound and unbound to a driver. Fixes: 5