commit | 0f46c80fde485ab33bb9a7eb99b62a0024d1aa27 | [log] [tgz] |
---|---|---|
author | Timur Tabi <timur@freescale.com> | Tue Sep 20 18:24:34 2011 -0500 |
committer | Gerald Van Baren <gvb@unssw.com> | Sat Oct 15 09:35:00 2011 -0400 |
tree | 63b2e8b1d4c525cb4f42114c27a9de024111cb40 | |
parent | 566f833e84080685eea4bc562d19e3922826388d [diff] |
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>