]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sh: gpio: Stub in dummy GPIO<->IRQ mapping routines.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 21 Oct 2008 08:48:40 +0000 (17:48 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 21 Oct 2008 08:48:40 +0000 (17:48 +0900)
IRQ modes are not presently supported, so stub in dummy definitions
for now (taken from linux/gpio.h).

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/gpio.h

index a6ec3e430380e0b4854da5a8d29f32e38c3e78a7..02de5b609ba5327c8588e91e0fbb9ca9f29f280a 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef __ASM_SH_GPIO_H
 #define __ASM_SH_GPIO_H
 
+#include <linux/errno.h>
+
 #if defined(CONFIG_CPU_SH3)
 #include <cpu/gpio.h>
 #endif
@@ -100,6 +102,19 @@ int gpio_direction_output(unsigned gpio, int value);
 int gpio_get_value(unsigned gpio);
 void gpio_set_value(unsigned gpio, int value);
 
+/* IRQ modes are unspported */
+static inline int gpio_to_irq(unsigned gpio)
+{
+       WARN_ON(1);
+       return -EINVAL;
+}
+
+static inline int irq_to_gpio(unsigned irq)
+{
+       WARN_ON(1);
+       return -EINVAL;
+}
+
 #include <asm-generic/gpio.h>
 
 #endif /* __ASM_SH_GPIO_H */