Skip to content

Commit

Permalink
gpio: fix build error in include/asm-generic/gpio.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hamo authored and Grant Likely committed Oct 26, 2011
1 parent feb8369 commit eb9ae7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-generic/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit eb9ae7f

Please sign in to comment.