Re: [PATCH] spi: sprd: don't mark remove function as __exit

2018-09-26 Thread Baolin Wang
On 26 September 2018 at 20:58, Arnd Bergmann wrote: > The __exit section is left out for built-in drivers, so a > 'remove' callback must not be marked as such to avoid breaking when > we unbind a device at runtime. This was pointed out by kbuild: > > `sprd_spi_remove' referenced in section `.data'

[PATCH] spi: sprd: don't mark remove function as __exit

2018-09-26 Thread Arnd Bergmann
The __exit section is left out for built-in drivers, so a 'remove' callback must not be marked as such to avoid breaking when we unbind a device at runtime. This was pointed out by kbuild: `sprd_spi_remove' referenced in section `.data' of drivers/spi/spi-sprd.o: defined in discarded section `.ex