Skip to content
Browse files

blackfin: gpio: fix compile error if !CONFIG_GPIOLIB

Add __gpio_get_value()/__gpio_set_value() to fix compile error if

Signed-off-by: Bob Liu <>
  • Loading branch information...
1 parent 95fc2d8 commit e8c5c6da6c8aafceb9b7ca98c601db55640826b3 @lliubbo lliubbo committed
Showing with 12 additions and 2 deletions.
  1. +12 −2 arch/blackfin/include/asm/gpio.h
14 arch/blackfin/include/asm/gpio.h
@@ -244,16 +244,26 @@ static inline int gpio_set_debounce(unsigned gpio, unsigned debounce)
return -EINVAL;
-static inline int gpio_get_value(unsigned gpio)
+static inline int __gpio_get_value(unsigned gpio)
return bfin_gpio_get_value(gpio);
-static inline void gpio_set_value(unsigned gpio, int value)
+static inline void __gpio_set_value(unsigned gpio, int value)
return bfin_gpio_set_value(gpio, value);
+static inline int gpio_get_value(unsigned gpio)
+ return __gpio_get_value(gpio);
+static inline void gpio_set_value(unsigned gpio, int value)
+ return __gpio_set_value(gpio, value);
static inline int gpio_to_irq(unsigned gpio)
if (likely(gpio < MAX_BLACKFIN_GPIOS))

0 comments on commit e8c5c6d

Please sign in to comment.
Something went wrong with that request. Please try again.