From eb9ae7f2a38135761496d317c08c87f38c7cafe3 Mon Sep 17 00:00:00 2001 From: Hamo Date: Fri, 21 Oct 2011 09:38:32 +0800 Subject: [PATCH] gpio: fix build error in include/asm-generic/gpio.h Should call the platform-specific __gpio_{get,set}_value instead of generic gpio_{get,set}_value Signed-off-by: Yang Bai Acked-by: Arnd Bergmann Signed-off-by: Grant Likely --- include/asm-generic/gpio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index dbb2832..8c86210 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -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 */ -- 2.7.4