mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
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 <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user