aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHamo <hamo.by@gmail.com>2011-10-20 21:38:32 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-10-26 17:15:28 -0400
commiteb9ae7f2a38135761496d317c08c87f38c7cafe3 (patch)
treed85b542a849aeb8381820f6dbba18dedd5e1f6eb
parentfeb836992437c9b8b53988da30880e0e6e93ac8b (diff)
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>
-rw-r--r--include/asm-generic/gpio.h4
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)
209static inline int gpio_get_value_cansleep(unsigned gpio) 209static inline int gpio_get_value_cansleep(unsigned gpio)
210{ 210{
211 might_sleep(); 211 might_sleep();
212 return gpio_get_value(gpio); 212 return __gpio_get_value(gpio);
213} 213}
214 214
215static inline void gpio_set_value_cansleep(unsigned gpio, int value) 215static inline void gpio_set_value_cansleep(unsigned gpio, int value)
216{ 216{
217 might_sleep(); 217 might_sleep();
218 gpio_set_value(gpio, value); 218 __gpio_set_value(gpio, value);
219} 219}
220 220
221#endif /* !CONFIG_GPIOLIB */ 221#endif /* !CONFIG_GPIOLIB */