diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-09-05 06:52:27 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-09-05 06:52:27 +0000 |
commit | 155c2fde2c15693932ac7fc172a49ecd3dae1ff4 (patch) | |
tree | 69656a80dc84955b39b1bf22889935bebbd273f5 /target/linux/generic-2.6 | |
parent | 938d4d1b306034c440270c6df35c5ac2233fb80c (diff) | |
download | upstream-155c2fde2c15693932ac7fc172a49ecd3dae1ff4.tar.gz upstream-155c2fde2c15693932ac7fc172a49ecd3dae1ff4.tar.bz2 upstream-155c2fde2c15693932ac7fc172a49ecd3dae1ff4.zip |
[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
Diffstat (limited to 'target/linux/generic-2.6')
-rw-r--r-- | target/linux/generic-2.6/patches-2.6.26/980-backport_gpio_sysfs_support.patch | 4 |
1 files changed, 3 insertions, 1 deletions
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 <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) |