diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-09-26 15:58:21 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-28 01:26:43 +0300 |
commit | 71d9a846fbcac1113b3810c06a8a3ddd936ada01 (patch) | |
tree | 771a2c97fb484407a47c8d960a3aaf6087c233ee | |
parent | 8cfde7847d5ed0bb77bace41519572963e43cd17 (diff) | |
download | linux-71d9a846fbcac1113b3810c06a8a3ddd936ada01.tar.xz |
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>
-rw-r--r-- | drivers/spi/spi-sprd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-sprd.c b/drivers/spi/spi-sprd.c index a9a6c5ed443f..8daa24eec624 100644 --- a/drivers/spi/spi-sprd.c +++ b/drivers/spi/spi-sprd.c @@ -676,7 +676,7 @@ free_controller: return ret; } -static int __exit sprd_spi_remove(struct platform_device *pdev) +static int sprd_spi_remove(struct platform_device *pdev) { struct spi_controller *sctlr = platform_get_drvdata(pdev); struct sprd_spi *ss = spi_controller_get_devdata(sctlr); |