commit | 2eb77f1d7160ca6a29d931c6c4dc4193f3145b2b | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Mar 05 12:25:19 2015 -0700 |
committer | Simon Glass <sjg@chromium.org> | Thu Apr 16 19:27:42 2015 -0600 |
tree | d59865db3298a477d4dab6175d5c8c5a215de46d | |
parent | 3c4a2871fc076adfa6c7eb8de89e840982d18590 [diff] |
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>