diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-07-29 00:46:38 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-29 01:30:21 +0200 |
commit | 25947d5ac56004378d8c2d31ebf22600d5bc0c02 (patch) | |
tree | 9c31bdb948e5bbb01e481fb1d74b9983aa93c987 /include/asm-generic/gpio.h | |
parent | bio-integrity: remove EXPORT_SYMBOL for bio_integrity_init_slab() (diff) | |
download | linux-25947d5ac56004378d8c2d31ebf22600d5bc0c02.tar.xz linux-25947d5ac56004378d8c2d31ebf22600d5bc0c02.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | include/asm-generic/gpio.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 <linux/types.h> +#include <linux/errno.h> #ifdef CONFIG_GPIOLIB |