From: Gabor Juhos Date: Fri, 5 Sep 2008 06:52:27 +0000 (+0000) Subject: [kernel] 2.6.26: fix build error caused by the gpio sysfs stuff X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b22d3c94975d7fe07566f1b3b5673d390c0e0b2b;p=openwrt%2Fsvn-archive%2Farchive.git [kernel] 2.6.26: fix build error caused by the gpio sysfs stuff SVN-Revision: 12536 --- diff --git a/target/linux/generic-2.6/patches-2.6.26/980-backport_gpio_sysfs_support.patch b/target/linux/generic-2.6/patches-2.6.26/980-backport_gpio_sysfs_support.patch index 7c69104d91..b62724ab04 100644 --- a/target/linux/generic-2.6/patches-2.6.26/980-backport_gpio_sysfs_support.patch +++ b/target/linux/generic-2.6/patches-2.6.26/980-backport_gpio_sysfs_support.patch @@ -978,7 +978,7 @@ Signed-off-by: Linus Torvalds 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 + +#ifndef CONFIG_GPIO_SYSFS + ++#include ++ +/* sysfs support is only available with gpiolib, where it's optional */ + +static inline int gpio_export(unsigned gpio, bool direction_may_change)