2.6.26: fix build error caused by the gpio sysfs stuff
SVN-Revision: 12536
This commit is contained in:
parent
359c7e3eb6
commit
700d906da5
1 changed files with 3 additions and 1 deletions
|
@ -978,7 +978,7 @@ Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
||||||
|
|
||||||
static inline int gpio_is_valid(int number)
|
static inline int gpio_is_valid(int number)
|
||||||
{
|
{
|
||||||
@@ -137,6 +152,20 @@
|
@@ -137,6 +152,22 @@
|
||||||
gpio_set_value(gpio, value);
|
gpio_set_value(gpio, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -987,6 +987,8 @@ Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
||||||
+
|
+
|
||||||
+#ifndef CONFIG_GPIO_SYSFS
|
+#ifndef CONFIG_GPIO_SYSFS
|
||||||
+
|
+
|
||||||
|
+#include <asm/errno.h>
|
||||||
|
+
|
||||||
+/* sysfs support is only available with gpiolib, where it's optional */
|
+/* sysfs support is only available with gpiolib, where it's optional */
|
||||||
+
|
+
|
||||||
+static inline int gpio_export(unsigned gpio, bool direction_may_change)
|
+static inline int gpio_export(unsigned gpio, bool direction_may_change)
|
||||||
|
|
Loading…
Reference in a new issue