summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2012-07-11 02:26:38 +0000
committerAnatolij Gustschin <agust@denx.de>2012-08-10 23:25:47 +0200
commite46431e190a9d53bcd7fa4c600dc94e9dba5b1ef (patch)
treeb52c98c2201a4c7340938470cfac4e582e400dc1 /lib
parentfc3608513ba13506d1e977d77e26916882803dfb (diff)
downloadu-boot-imx-e46431e190a9d53bcd7fa4c600dc94e9dba5b1ef.zip
u-boot-imx-e46431e190a9d53bcd7fa4c600dc94e9dba5b1ef.tar.gz
u-boot-imx-e46431e190a9d53bcd7fa4c600dc94e9dba5b1ef.tar.bz2
fdt: Include arch specific gpio.h instead of asm-generic/gpio.h
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> Acked-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c3
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;