]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:22 +0000 (21:47 +0200)
commit6e2abe0627f07177fa9cd454b1d2750f5f57e857
tree4c5a98c9d802a71e0c07d5241628bb78af87bc4c
parent7bc47d139eecb97200a6bd487afa219f77021593
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