summaryrefslogtreecommitdiff
path: root/target/linux/generic-2.6
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-09-05 06:52:27 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-09-05 06:52:27 +0000
commit700d906da5cdbc1e4b53eca7cd136adcdce680a2 (patch)
treef7ca46fba7466300a0080030b4591e735d46f98a /target/linux/generic-2.6
parent359c7e3eb630e77b7eb75051df7f57ebd7ef2bb8 (diff)
downloadmtk-20170518-700d906da5cdbc1e4b53eca7cd136adcdce680a2.zip
mtk-20170518-700d906da5cdbc1e4b53eca7cd136adcdce680a2.tar.gz
mtk-20170518-700d906da5cdbc1e4b53eca7cd136adcdce680a2.tar.bz2
2.6.26: fix build error caused by the gpio sysfs stuff
SVN-Revision: 12536
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.patch4
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 7c69104..b62724a 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)