mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[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
This commit is contained in:
parent
938d4d1b30
commit
155c2fde2c
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user