diff options
author | Klaus Goger <klaus.goger@theobroma-systems.com> | 2017-09-20 13:50:41 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-10-08 20:41:09 -0600 |
commit | 68a345294ac74505f17d65b003a7de836b3d9cba (patch) | |
tree | 2721a647b480716fdab1e58a312b57ad8e687c51 /configs/MPC8569MDS_defconfig | |
parent | 5924da1dfe56d32a45b8adf29bdc8caf788bd4c8 (diff) | |
download | u-boot-68a345294ac74505f17d65b003a7de836b3d9cba.tar.gz |
dm: ofnode: query correct property in livetree ofnode_get_addr_size
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 <klaus.goger@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'configs/MPC8569MDS_defconfig')
0 files changed, 0 insertions, 0 deletions