From e0b5e07c89abba9db7dcc42a8327ca471bc3f53a Mon Sep 17 00:00:00 2001 From: juhosg Date: Fri, 5 Sep 2008 06:52:27 +0000 Subject: [kernel] 2.6.26: fix build error caused by the gpio sysfs stuff git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12536 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../generic-2.6/patches-2.6.26/980-backport_gpio_sysfs_support.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'target/linux') 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 7c69104d9..b62724ab0 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) -- cgit v1.2.3