projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3b6e80
)
gpio: fix build on CONFIG_GPIO_SYSFS=n
author
Atsushi Nemoto
<anemo@mba.ocn.ne.jp>
Mon, 28 Jul 2008 22:46:38 +0000
(15:46 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Mon, 28 Jul 2008 23:30:21 +0000
(16:30 -0700)
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>
include/asm-generic/gpio.h
patch
|
blob
|
history
diff --git
a/include/asm-generic/gpio.h
b/include/asm-generic/gpio.h
index c764a8fcb058e33fb703e56af17eaa7fb966d7ea..0f99ad38b012f93ef10ccb5b0f9105b4e7f8daab 100644
(file)
--- 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