diff mbox

[U-Boot] fdt: Include arch specific gpio.h instead of asm-generic/gpio.h

Message ID 1342009579-19071-1-git-send-email-monstr@monstr.eu
State Accepted
Commit e46431e190a9d53bcd7fa4c600dc94e9dba5b1ef
Headers show

Commit Message

Michal Simek July 11, 2012, 12:26 p.m. UTC
Include arch specific gpio.h instead of asm-generic/gpio.h
because several architectures (Microblaze, Blackfin, Nios2, OpenRISC)
define gpio functions in header file.
asm-generic/gpio.h can be included in arch specific gpio.h
(For example: ARM)

Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Simon Glass <sjg@chromium.org>

---
v2: Use only arch specific gpio.h
    Remove commentary
---
 lib/fdtdec.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Comments

Michal Simek July 11, 2012, 12:28 p.m. UTC | #1
2012/7/11 Michal Simek <monstr@monstr.eu>:
> Include arch specific gpio.h instead of asm-generic/gpio.h
> because several architectures (Microblaze, Blackfin, Nios2, OpenRISC)
> define gpio functions in header file.
> asm-generic/gpio.h can be included in arch specific gpio.h
> (For example: ARM)
>
> Signed-off-by: Michal Simek <monstr@monstr.eu>
> CC: Simon Glass <sjg@chromium.org>
>
> ---
> v2: Use only arch specific gpio.h
>     Remove commentary
> ---
>  lib/fdtdec.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
> index cc09e06..af17ac1 100644
> --- a/lib/fdtdec.c
> +++ b/lib/fdtdec.c
> @@ -24,8 +24,7 @@
>  #include <libfdt.h>
>  #include <fdtdec.h>
>
> -/* we need the generic GPIO interface here */
> -#include <asm-generic/gpio.h>
> +#include <asm/gpio.h>
>
>  DECLARE_GLOBAL_DATA_PTR;
>
> --

Reject.

Forget to change subject.

Sorry.
Michal
diff mbox

Patch

diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index cc09e06..af17ac1 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -24,8 +24,7 @@ 
 #include <libfdt.h>
 #include <fdtdec.h>
 
-/* we need the generic GPIO interface here */
-#include <asm-generic/gpio.h>
+#include <asm/gpio.h>
 
 DECLARE_GLOBAL_DATA_PTR;