Skip to content
Snippets Groups Projects
Commit 0ba41ce1 authored by Matthias Brugger's avatar Matthias Brugger Committed by Simon Glass
Browse files

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: default avatarMatthias Brugger <mbrugger@suse.com>
parent ce2dae3a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment