Skip to contentSkip to conversation

gpio: max7301: add missing __devexit marking

PATCH In review Mike Frysinger 2 participants 2 messages May 18, 2009 GPIO

lore
Share & tools
lore
#0 lore raw

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.

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
index 3e7f4e0..7b82eaa 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 16 lines · Mike Frysinger

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.

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
index 3e7f4e0..7b82eaa 100644

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;
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/  |