[kernel] 2.6.26: fix build error caused by the gpio sysfs stuff
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.26 / 980-backport_gpio_sysfs_support.patch
index 7c69104..b62724a 100644 (file)
@@ -978,7 +978,7 @@ Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  
  static inline int gpio_is_valid(int number)
  {
-@@ -137,6 +152,20 @@
+@@ -137,6 +152,22 @@
        gpio_set_value(gpio, value);
  }
  
@@ -987,6 +987,8 @@ Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
 +
 +#ifndef CONFIG_GPIO_SYSFS
 +
++#include <asm/errno.h>
++
 +/* sysfs support is only available with gpiolib, where it's optional */
 +
 +static inline int gpio_export(unsigned gpio, bool direction_may_change)
This page took 0.022981 seconds and 4 git commands to generate.