SPI: spi-ppc4xx - remove incorrect __exit markup
PATCH 1/1 SPI: spi-ppc4xx - remove incorrect __exit markup
Even if bus is not hot-pluggable, the devices can be unbound from the driver via sysfs, so we should not be using __exit annotations on remove() methods. The only exception is drivers registered with platform_driver_probe() which specifically disables sysfs bind/unbind attributes.
Signed-off-by Dmitry Torokhov <[email protected]>
--- drivers/spi/spi-ppc4xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-ppc4xx.c +2 -2
@@ -560,7 +560,7 @@ free_master:return ret; } -static int __exit spi_ppc4xx_of_remove(struct platform_device *op) +static int spi_ppc4xx_of_remove (struct platform_device *op) {struct spi_master *master =dev_get_drvdata (&op->dev);struct ppc4xx_spi *hw =spi_master_get_devdata (master);
@@ -583,7 +583,7 @@ MODULE_DEVICE_TABLE(of, spi_ppc4xx_of_match);static struct platform_driver spi_ppc4xx_of_driver = { .probe = spi_ppc4xx_of_probe, - .remove =__exit_p (spi_ppc4xx_of_remove), + .remove = spi_ppc4xx_of_remove, .driver = { .name =DRIVER_NAME , .owner =THIS_MODULE ,
Signature · 5 lines
1.7.11.7 -- Dmitry