commit | 3c927cccdc930e15cc993e27ac3bee8e15682423 | [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 | 8ddb10eae0c0e6936c69b19c21aaa2f6e0433717 [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>