From: Atsushi Nemoto Date: Mon, 28 Jul 2008 22:46:38 +0000 (-0700) Subject: gpio: fix build on CONFIG_GPIO_SYSFS=n X-Git-Tag: v2.6.27-rc1~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=25947d5ac56004378d8c2d31ebf22600d5bc0c02;p=linux-2.6-omap-h63xx.git 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 Acked-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index c764a8fcb05..0f99ad38b01 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -2,6 +2,7 @@ #define _ASM_GENERIC_GPIO_H #include +#include #ifdef CONFIG_GPIOLIB