]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
spi: sprd: don't mark remove function as __exit
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Sep 2018 12:58:21 +0000 (14:58 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 27 Sep 2018 22:26:43 +0000 (23:26 +0100)
commit71d9a846fbcac1113b3810c06a8a3ddd936ada01
tree771a2c97fb484407a47c8d960a3aaf6087c233ee
parent8cfde7847d5ed0bb77bace41519572963e43cd17
spi: sprd: don't mark remove function as __exit

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 `.exit.text' of drivers/spi/spi-sprd.o

Fixes: e7d973a31c24 ("spi: sprd: Add SPI driver for Spreadtrum SC9860")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sprd.c