static inline int gpio_is_valid(int number)
{
-@@ -137,6 +152,20 @@
+@@ -137,6 +152,22 @@
gpio_set_value(gpio, value);
}
+
+#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)