Blackfin: gpio: add a debounce stub
authorMike Frysinger <vapier@gentoo.org>
Fri, 6 Aug 2010 15:36:37 +0000 (11:36 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 6 Aug 2010 16:55:58 +0000 (12:55 -0400)
The GPIO API was extended recently to include debounce functions, but
since the on-chip Blackfin GPIO modules don't support this stuff, make
a stub in the non-GPIOLIB case so drivers build properly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/gpio.h

index 0300c6a09d5bad546a3e3805d3ec2a461b3aeb7e..1ef8417f5d277d33b1f4a0a3b650775a0f3616c5 100644 (file)
@@ -279,6 +279,11 @@ static inline int gpio_direction_output(unsigned gpio, int value)
        return bfin_gpio_direction_output(gpio, value);
 }
 
+static inline int gpio_set_debounce(unsigned gpio, unsigned debounce)
+{
+       return -EINVAL;
+}
+
 static inline int gpio_get_value(unsigned gpio)
 {
        return bfin_gpio_get_value(gpio);