2008-07-28 15:14:30

by Atsushi Nemoto

[permalink] [raw]
Subject: [PATCH] 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 <[email protected]>
---
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


2008-07-28 18:08:35

by David Brownell

[permalink] [raw]
Subject: Re: [PATCH] gpio: Fix build on CONFIG_GPIO_SYSFS=n

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 <[email protected]>

Acked-by: David Brownell <[email protected]>


> ---
> 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
>
>