From: Mike Frysinger Date: Wed, 17 Jun 2009 23:26:16 +0000 (-0700) Subject: gpio: max7301: add missing __devexit marking X-Git-Tag: v2.6.31-rc1~254 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=de3483b071d9f75490f52c1be78434ac4eeccea5;p=safe%2Fjmp%2Flinux-2.6 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 Acked-by: Juergen Beisert Cc: Dmitry Baryshkov Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/gpio/max7301.c b/drivers/gpio/max7301.c index 3e7f4e0..7b82eaa 100644 --- a/drivers/gpio/max7301.c +++ b/drivers/gpio/max7301.c @@ -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;