[U-Boot] [PATCH] fdt: make fdt_get_base_address() return OF_BAD_ADDR when "reg" not found

Bin Meng bmeng.cn at gmail.com
Thu Jun 27 08:07:08 UTC 2019


On Thu, Jun 27, 2019 at 3:40 PM Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
>
> 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 at socionext.com>
> ---
>
>  common/fdt_support.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list