Skip to content
Snippets Groups Projects
Commit a0ae380b authored by Bin Meng's avatar Bin Meng
Browse files

fdt: Change OF_BAD_ADDR to FDT_ADDR_T_NONE


Currently OF_BAD_ADDR is always -1ULL. When using OF_BAD_ADDR as the
return value of dev_get_addr(), it creates potential size mismatch
as dev_get_addr() uses FDT_ADDR_T_NONE as the return value which can
be either -1U or -1ULL depending on CONFIG_PHYS_64BIT. Now we change
OF_BAD_ADDR to FDT_ADDR_T_NONE to avoid such case.

Signed-off-by: Bin Meng's avatarBin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent 8555dd88
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment