summaryrefslogtreecommitdiff
path: root/include/libfdt.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-04-03 22:36:44 +0200
committerWolfgang Denk <wd@denx.de>2009-04-03 22:36:44 +0200
commit3405f38a15eec5092ac47efe0829f10a24491c6e (patch)
tree23f646b4a0c35cf0919c80765813e1df3fe98f7f /include/libfdt.h
parent200779e3e2a9aeda7030b171a8c39d7797019917 (diff)
parent67b89c79e72fe86b0ea0199425d880630beb95d8 (diff)
downloadu-boot-imx-3405f38a15eec5092ac47efe0829f10a24491c6e.zip
u-boot-imx-3405f38a15eec5092ac47efe0829f10a24491c6e.tar.gz
u-boot-imx-3405f38a15eec5092ac47efe0829f10a24491c6e.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-fdt
Diffstat (limited to 'include/libfdt.h')
-rw-r--r--include/libfdt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libfdt.h b/include/libfdt.h
index ce374fd..d23d40e 100644
--- a/include/libfdt.h
+++ b/include/libfdt.h
@@ -156,7 +156,7 @@ int fdt_next_node(const void *fdt, int offset, int *depth);
#define __fdt_set_hdr(name) \
static inline void fdt_set_##name(void *fdt, uint32_t val) \
{ \
- struct fdt_header *fdth = fdt; \
+ struct fdt_header *fdth = (struct fdt_header*)fdt; \
fdth->name = cpu_to_fdt32(val); \
}
__fdt_set_hdr(magic);