summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2012-03-27 11:27:15 +0800
committerBob Liu <lliubbo@gmail.com>2012-04-06 10:25:03 +0800
commite8c5c6da6c8aafceb9b7ca98c601db55640826b3 (patch)
tree60a1f74ffe7940a184d7ccdfd7cac47f9ca429bb /arch
parent95fc2d8f96d37995f2bd1ec49f46ee9816ddf5b7 (diff)
downloadlinux-e8c5c6da6c8aafceb9b7ca98c601db55640826b3.tar.bz2
blackfin: gpio: fix compile error if !CONFIG_GPIOLIB
Add __gpio_get_value()/__gpio_set_value() to fix compile error if CONFIG_GPIOLIB = n. Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/include/asm/gpio.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/blackfin/include/asm/gpio.h b/arch/blackfin/include/asm/gpio.h
index 5a25856381ff..12d3571b5232 100644
--- a/arch/blackfin/include/asm/gpio.h
+++ b/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))