summaryrefslogtreecommitdiffstats
path: root/lib/libfdt/fdt_rw.c
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2013-01-16 13:59:50 +0000
committerGerald Van Baren <gvb@unssw.com>2013-02-07 20:38:55 -0500
commitb2ba62a1aa7f2b68c418cf44ab15eee718913272 (patch)
treebff596e4205ca600bc5948901b9f675791f5775e /lib/libfdt/fdt_rw.c
parent71bbb3df90740fb7aa7edaaf7445c304aed69db8 (diff)
downloadblackbird-obmc-uboot-b2ba62a1aa7f2b68c418cf44ab15eee718913272.tar.gz
blackbird-obmc-uboot-b2ba62a1aa7f2b68c418cf44ab15eee718913272.zip
libfdt: update from upstream dtc commit 142419e
commit 142419e "dtc/libfdt: sparse fixes", for u-boot's libfdt copy. Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Cc: Jerry Van Baren <gvb.uboot@gmail.com>
Diffstat (limited to 'lib/libfdt/fdt_rw.c')
-rw-r--r--lib/libfdt/fdt_rw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfdt/fdt_rw.c b/lib/libfdt/fdt_rw.c
index 5ed23d6f19..aba6094841 100644
--- a/lib/libfdt/fdt_rw.c
+++ b/lib/libfdt/fdt_rw.c
@@ -343,7 +343,7 @@ int fdt_add_subnode_namelen(void *fdt, int parentoffset,
int nodelen;
int err;
uint32_t tag;
- uint32_t *endtag;
+ fdt32_t *endtag;
FDT_RW_CHECK_HEADER(fdt);
@@ -370,7 +370,7 @@ int fdt_add_subnode_namelen(void *fdt, int parentoffset,
nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE);
memset(nh->name, 0, FDT_TAGALIGN(namelen+1));
memcpy(nh->name, name, namelen);
- endtag = (uint32_t *)((char *)nh + nodelen - FDT_TAGSIZE);
+ endtag = (fdt32_t *)((char *)nh + nodelen - FDT_TAGSIZE);
*endtag = cpu_to_fdt32(FDT_END_NODE);
return offset;
OpenPOWER on IntegriCloud