diff options
author | Matthias Brugger <mbrugger@suse.com> | 2019-09-05 10:48:47 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-10-15 08:40:02 -0600 |
commit | 0ba41ce1b7816c229cc19e0621148b98f990cb68 (patch) | |
tree | 449a98e679026e6eaa471331af17a1c0f12d0494 /scripts/bin2c.c | |
parent | ce2dae3a44ccc2fe87a9589e3a70ba51885930ab (diff) |
libfdt: return correct value if #size-cells property is not present
According to the device tree specification, the default value for
was not present.
This patch also makes fdt_address_cells() and fdt_size_cells() conform
to the behaviour documented in libfdt.h. The defaults are only returned
if fdt_getprop() returns -FDT_ERR_NOTFOUND, otherwise the actual error
is returned.
This is based on upstream commit:
aa7254d ("libfdt: return correct value if #size-cells property is not present")
but misses the test case part, as we don't implement them in U-Boot.
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Diffstat (limited to 'scripts/bin2c.c')
0 files changed, 0 insertions, 0 deletions