diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2020-09-25 09:41:15 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-06 09:07:54 -0600 |
commit | cba487c7fc0fea21757cd8dba10271469d5fde9c (patch) | |
tree | f1840b7339ef99a7aaee19c8a4fb14918ea5efe5 /drivers/fpga/fpga.c | |
parent | 89f68302cacaa41330959420d7329b7c89afdd88 (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>
Diffstat (limited to 'drivers/fpga/fpga.c')
0 files changed, 0 insertions, 0 deletions