gpio: Use __devexit at necessary places
authorAxel Lin <axel.lin@gmail.com>
Thu, 10 Mar 2011 09:10:45 +0000 (17:10 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 12 Mar 2011 09:14:48 +0000 (02:14 -0700)
The function gen_74x164_remove and mc33880_remove are used only wrapped
by __devexit_p so define it using __devexit.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/74x164.c
drivers/gpio/mc33880.c

index d91ff4c..84e0702 100644 (file)
@@ -133,7 +133,7 @@ exit_destroy:
        return ret;
 }
 
-static int gen_74x164_remove(struct spi_device *spi)
+static int __devexit gen_74x164_remove(struct spi_device *spi)
 {
        struct gen_74x164_chip *chip;
        int ret;
index 935479d..00f6d24 100644 (file)
@@ -146,7 +146,7 @@ exit_destroy:
        return ret;
 }
 
-static int mc33880_remove(struct spi_device *spi)
+static int __devexit mc33880_remove(struct spi_device *spi)
 {
        struct mc33880 *mc;
        int ret;