commit | b1dd47c023e2faf48ce003ad44c6b7e7bbec1cbc | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <yamada.masahiro@socionext.com> | Thu Jun 27 16:39:57 2019 +0900 |
committer | Simon Glass <sjg@chromium.org> | Wed Jul 24 12:54:08 2019 -0700 |
tree | 8c6220eac87c0f006c1de79cc39a523d07537f3e | |
parent | 52d0621bf2d598f926c42d1e3b38237aa04cc621 [diff] |
fdt: make fdt_get_base_address() return OF_BAD_ADDR when "reg" not found Currently, fdt_get_base_address() returns 0 if the "reg" property is missing. Since 0 is a valid value, it is not suitable for the error handling. Return OF_BAD_ADDR instead. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>