gpio: max7301: add missing __devexit marking
PATCH 1/1 gpio: max7301: add missing __devexit marking
The remove member of the spi_driver max7301_driver uses __devexit_p(), so the remove function itself should be marked with __devexit. Even more so considering the probe function is marked with __devinit.
Signed-off-by Mike Frysinger <[email protected]>
CC Juergen Beisert <[email protected]>
CC Dmitry Baryshkov <[email protected]>
--- drivers/gpio/max7301.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpio/max7301.c +1 -1
@@ -287,7 +287,7 @@ exit_destroy:return ret; } -static int max7301_remove (struct spi_device *spi) +static int __devexit max7301_remove(struct spi_device *spi) {struct max7301 *ts;int ret;
Signature · 1 line
1.6.3
Quoted 16 lines · Mike Frysinger
The remove member of the
spi_drivermax7301_driveruses__devexit_p(), so the remove function itself should be marked with__devexit. Even more so considering the probe function is marked with__devinit.Signed-off-by Mike Frysinger <[email protected]>CC Juergen Beisert <[email protected]>CC Dmitry Baryshkov <[email protected]>--- drivers/gpio/max7301.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/gpio/max7301.c +0
-0
drivers/gpio/max7301.c exit_destroy: · line 293
Quoted 8 lines
drivers/gpio/max7301.c +1
-1@@ -287,7 +287,7 @@ exit_destroy:return ret; } -static int max7301_remove (struct spi_device *spi) +static int __devexit max7301_remove(struct spi_device *spi) {struct max7301 *ts;int ret;
Acked-by Juergen Beisert <[email protected]>
Signature · 4 lines
Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | Phone: +49-8766-939 228 | Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ |