diff options
author | Hamo <hamo.by@gmail.com> | 2011-10-21 03:38:32 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-10-26 23:15:28 +0200 |
commit | eb9ae7f2a38135761496d317c08c87f38c7cafe3 (patch) | |
tree | d85b542a849aeb8381820f6dbba18dedd5e1f6eb /include | |
parent | gpiolib: Ensure struct gpio is always defined (diff) | |
download | linux-eb9ae7f2a38135761496d317c08c87f38c7cafe3.tar.xz linux-eb9ae7f2a38135761496d317c08c87f38c7cafe3.zip |
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 <hamo.by@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/gpio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index dbb2832b76fd..8c8621097fa0 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 */ |