mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-19 03:08:31 +00:00
b14c533986
If the offset is -1 this function correctly sets up a null ofnode. But if the offset is any other negative number (e.g. -FDT_ERR_BADPATH) then it does the wrong thing. An offset of -1 in ofnode indicates that the ofnode is not valid. Any other negative value is not handled by ofnode_valid(). We could of course change that function, but it seems much better to always use the same value for an invalid node. Fix it by setting the offset to -1 if it is invalid for any reason. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> |
||
---|---|---|
.. | ||
platform_data | ||
device-internal.h | ||
device.h | ||
fdtaddr.h | ||
lists.h | ||
of.h | ||
of_access.h | ||
of_addr.h | ||
of_extra.h | ||
ofnode.h | ||
pinctrl.h | ||
platdata.h | ||
read.h | ||
root.h | ||
test.h | ||
uclass-id.h | ||
uclass-internal.h | ||
uclass.h | ||
util.h |