gpio: fix build error in include/asm-generic/gpio.h
authorHamo <hamo.by@gmail.com>
Fri, 21 Oct 2011 01:38:32 +0000 (09:38 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 26 Oct 2011 21:15:28 +0000 (23:15 +0200)
Should call the platform-specific __gpio_{get,set}_value
instead of generic gpio_{get,set}_value

Signed-off-by: Yang Bai <hamo.by@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
include/asm-generic/gpio.h

index dbb2832b76fdc5c8ae4fba8678242d2c7b87de36..8c8621097fa0916f770e18eeffa08a410ecf43dd 100644 (file)
@@ -209,13 +209,13 @@ static inline int gpio_cansleep(unsigned gpio)
 static inline int gpio_get_value_cansleep(unsigned gpio)
 {
        might_sleep();
-       return gpio_get_value(gpio);
+       return __gpio_get_value(gpio);
 }
 
 static inline void gpio_set_value_cansleep(unsigned gpio, int value)
 {
        might_sleep();
-       gpio_set_value(gpio, value);
+       __gpio_set_value(gpio, value);
 }
 
 #endif /* !CONFIG_GPIOLIB */