]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: Return -1 when reading a PCI config register fails
authorSimon Glass <sjg@chromium.org>
Thu, 13 Aug 2015 02:09:30 +0000 (20:09 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 14 Aug 2015 15:50:13 +0000 (09:50 -0600)
commit052e34b363fdd4b20be099c3e1405a30988b3a5a
tree1f4f7d2a19956d343c754726618d8a05425ca734
parentecf674b772713837e1d36f9c70ee319d7753a895
x86: Return -1 when reading a PCI config register fails

This can fail for internal reasons, so return a sensible value rather than
a random one.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/pci.c