aboutsummaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorMatthias Brugger <mbrugger@suse.com>2019-09-05 10:48:47 +0200
committerSimon Glass <sjg@chromium.org>2019-10-15 08:40:02 -0600
commit0ba41ce1b7816c229cc19e0621148b98f990cb68 (patch)
tree449a98e679026e6eaa471331af17a1c0f12d0494 /env
parentce2dae3a44ccc2fe87a9589e3a70ba51885930ab (diff)
downloadu-boot-0ba41ce1b7816c229cc19e0621148b98f990cb68.zip
u-boot-0ba41ce1b7816c229cc19e0621148b98f990cb68.tar.gz
u-boot-0ba41ce1b7816c229cc19e0621148b98f990cb68.tar.bz2
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 'env')
0 files changed, 0 insertions, 0 deletions