gpio: fix build on CONFIG_GPIO_SYSFS=n
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Mon, 28 Jul 2008 22:46:38 +0000 (15:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Jul 2008 23:30:21 +0000 (16:30 -0700)
commit25947d5ac56004378d8c2d31ebf22600d5bc0c02
tree9c31bdb948e5bbb01e481fb1d74b9983aa93c987
parente3b6e806cf7e45ac5e6ac0625cebafa4de3394aa
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>
include/asm-generic/gpio.h