Patrick Delaunay cba487c7fc fdtdec: correct test on return of fdt_node_offset_by_phandle
The result of fdt_node_offset_by_phandle is negative for error,
so this patch corrects the check of this result in
fdtdec_parse_phandle_with_args.

This patch allows to have the same behavior with or without OF_LIVE
for the function dev_read_phandle_with_args with cell_name = NULL and
with invalid phandle.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-10-06 09:07:54 -06:00
..
2020-08-03 22:19:54 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2011-01-18 23:38:08 +01:00
2019-12-02 18:23:07 -05:00
2019-10-31 07:22:53 -04:00
2010-09-19 19:29:47 +02:00
2020-04-24 10:51:32 -04:00
2020-08-14 15:18:30 -04:00
2012-04-29 14:14:08 +02:00
2019-12-06 16:44:20 -05:00
2020-05-18 21:19:18 -04:00
2020-06-12 13:14:07 -04:00
2020-05-18 21:19:18 -04:00
2020-08-24 14:11:31 -04:00
2020-05-01 11:03:24 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 18:36:55 -04:00
2019-05-05 08:48:50 -04:00