]> git.ipfire.org Git - people/ms/u-boot.git/commit
fdt: Tighten up error handling in fdtdec_get_pci_addr()
authorSimon Glass <sjg@chromium.org>
Thu, 5 Mar 2015 19:25:19 +0000 (12:25 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 17 Apr 2015 01:27:42 +0000 (19:27 -0600)
commit106cce9604306743c86addd4d27426cce498c9d1
treed59865db3298a477d4dab6175d5c8c5a215de46d
parentcc5e196e0350055e3e438d5dc2341316027c8d93
fdt: Tighten up error handling in fdtdec_get_pci_addr()

This function returns -ENOENT when the property is missing (which the caller
might forgive) and also when the property is present but incorrectly
formatted (which many callers would like to report).

Update the error return value to allow these different situations to be
distinguished.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/fdtdec.h
lib/fdtdec.c