commit | f9cbd1a8471922db23900560cd2f0ba473f36838 | [log] [tgz] |
---|---|---|
author | Patrick Delaunay <patrick.delaunay@st.com> | Fri Sep 25 09:41:15 2020 +0200 |
committer | Simon Glass <sjg@chromium.org> | Tue Oct 06 09:07:54 2020 -0600 |
tree | f1840b7339ef99a7aaee19c8a4fb14918ea5efe5 | |
parent | d776a84191c120ae79fbb9f16c911de21c483628 [diff] |
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>