From: Atsushi Nemoto Date: Mon, 28 Jul 2008 22:46:38 +0000 (-0700) Subject: gpio: fix build on CONFIG_GPIO_SYSFS=n X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=25947d5ac56004378d8c2d31ebf22600d5bc0c02;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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 c764a8fcb058..0f99ad38b012 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