gpio: fix build on CONFIG_GPIO_SYSFS=n

If CONFIG_GENERIC_GPIO=y && CONFIG_GPIO_SYSFS=n, gpio_export() in
asm-generic/gpio.h refers -ENOSYS and causes build error.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Atsushi Nemoto and committed by
Linus Torvalds
25947d5a e3b6e806

+1
+1
include/asm-generic/gpio.h
··· 2 #define _ASM_GENERIC_GPIO_H 3 4 #include <linux/types.h> 5 6 #ifdef CONFIG_GPIOLIB 7
··· 2 #define _ASM_GENERIC_GPIO_H 3 4 #include <linux/types.h> 5 + #include <linux/errno.h> 6 7 #ifdef CONFIG_GPIOLIB 8