]> git.sur5r.net Git - u-boot/commit
fdt: check for fdt errors in fdt_create_phandle
authorTimur Tabi <timur@freescale.com>
Tue, 20 Sep 2011 23:24:34 +0000 (18:24 -0500)
committerGerald Van Baren <gvb@unssw.com>
Sat, 15 Oct 2011 13:35:00 +0000 (09:35 -0400)
commit3c927cccdc930e15cc993e27ac3bee8e15682423
tree63b2e8b1d4c525cb4f42114c27a9de024111cb40
parent8ddb10eae0c0e6936c69b19c21aaa2f6e0433717
fdt: check for fdt errors in fdt_create_phandle

fdt_create_phandle() was ignoring errors from fdt_set_phandle().  If an
error occurs, print an error message and return 0, which is an invalid
phandle.  We also need to change the return type for fdt_create_phandle()
to indicate that it cannot return an error code.

Signed-off-by: Timur Tabi <timur@freescale.com>
common/fdt_support.c
include/fdt_support.h