On 20 September 2017 at 05:50, Klaus Goger <[email protected]> wrote: > The livetree codepath of ofnode_get_addr_size always used the "reg" > property for of_get_property. Use the property parameter of the function > call instead and check the return value if the property exists. > Otherwise return FDT_ADDR_T_NONE. > > This was discoverd while using SPI NOR with livetree. > spi_flash_decode_fdt checks for memory-map and will not fail with > livetree even if the property does not exist. > > Signed-off-by: Klaus Goger <[email protected]> > Reviewed-by: Philipp Tomsich <[email protected]> > > --- > > drivers/core/ofnode.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <[email protected]> Applied to u-boot-dm thanks! _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

