commit | 45bebc5e3fa0581bead0f423d61dfab087f5972d | [log] [tgz] |
---|---|---|
author | Jeroen Hofstee <jeroen@myspectrum.nl> | Wed Jun 11 23:12:28 2014 +0200 |
committer | Tom Warren <twarren@nvidia.com> | Thu Jun 19 09:18:05 2014 -0700 |
tree | 3635d1f0f333229ba6fbaa87281f7e2e86777a66 | |
parent | 4e4b3fbe1ce27ee2aa2351792abc26032043b4fb [diff] |
tegra20: display: fix checking of return value The calling code seems a bit in doubt about the return value of fdtdec_lookup_phandle. Since it returns a negative value on error (and fdt_node_offset_by_phandle as well), check for that. cc: Wei Ni <wni@nvidia.com> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>