]> git.sur5r.net Git - u-boot/commit
fdt: Change OF_BAD_ADDR to FDT_ADDR_T_NONE
authorBin Meng <bmeng.cn@gmail.com>
Mon, 7 Dec 2015 09:39:47 +0000 (01:39 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 9 Dec 2015 09:44:36 +0000 (17:44 +0800)
commita0ae380b3c32254a6462674cfbfdd763d10bca41
tree2b1c1926d46bc4fdfdfec75707d55fb701a63a1e
parent8555dd88cd1a7b5dd1e76c111fe635a92223b98b
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 <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
common/fdt_support.c