Skip to contentSkip to conversation

gpio: Use __devexit at necessary places

PATCH Applied Axel Lin 2 participants 2 messages Mar 10, 2011 – Mar 12, 2011 GPIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: Use __devexit at necessary places

The function gen_74x164_remove and mc33880_remove are used only wrapped by __devexit_p so define it using __devexit.

Cc Miguel Gaio <[email protected]>
Cc Mocean Laboratories <[email protected]>
---
 drivers/gpio/74x164.c  |    2 +-
 drivers/gpio/mc33880.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpio/74x164.c +1 -1
index d91ff4c..84e0702 100644
@@ -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;
drivers/gpio/mc33880.c +1 -1
index 935479d..00f6d24 100644
@@ -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;
Signature · 1 line
1.7.2
Applied
#1 lore raw
Quoted 6 lines · Axel Lin

The function gen_74x164_remove and mc33880_remove are used only wrapped by __devexit_p so define it using __devexit.

Cc Miguel Gaio <[email protected]>
Cc Mocean Laboratories <[email protected]>

Applied, thanks.

g.

Quoted 36 lines
---
 drivers/gpio/74x164.c  |    2 +-
 drivers/gpio/mc33880.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpio/74x164.c +1 -1
index d91ff4c..84e0702 100644
@@ -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;
drivers/gpio/mc33880.c +1 -1
index 935479d..00f6d24 100644
@@ -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;
Signature · 1 line
1.7.2