* [PATCH] gpio: Fix build on CONFIG_GPIO_SYSFS=n
@ 2008-07-28 15:16 Atsushi Nemoto
2008-07-28 18:03 ` David Brownell
0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2008-07-28 15:16 UTC (permalink / raw)
To: David Brownell; +Cc: linux-kernel, akpm
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>
---
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index c764a8f..0f99ad3 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] gpio: Fix build on CONFIG_GPIO_SYSFS=n
2008-07-28 15:16 [PATCH] gpio: Fix build on CONFIG_GPIO_SYSFS=n Atsushi Nemoto
@ 2008-07-28 18:03 ` David Brownell
0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2008-07-28 18:03 UTC (permalink / raw)
To: Atsushi Nemoto; +Cc: linux-kernel, akpm
On Monday 28 July 2008, Atsushi Nemoto wrote:
> 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>
> ---
> diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
> index c764a8f..0f99ad3 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
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-28 18:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-28 15:16 [PATCH] gpio: Fix build on CONFIG_GPIO_SYSFS=n Atsushi Nemoto
2008-07-28 18:03 ` David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®