summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWolfgang Denk <[email protected]>2007-08-18 21:42:30 +0200
committerWolfgang Denk <[email protected]>2007-08-18 21:42:30 +0200
commit9edd580e91d7eb031298294063f5aa9fa7f0a330 (patch)
treebf94a6efe94fa4740de2d20474551ec93aa03697 /drivers
parentfc9970137c8f187b5938e4926224e0f3d46c3476 (diff)
parent79f240f7ecc0506b43ac50d1ea405ff6540d4d57 (diff)
Merge with git+ssh://gemini_vpn/home/wd/git/u-boot/master
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci.c b/drivers/pci.c
index 41589192c1c..50ca6b0bad6 100644
--- a/drivers/pci.c
+++ b/drivers/pci.c
@@ -82,8 +82,10 @@ int pci_hose_read_config_##size##_via_dword(struct pci_controller *hose,\
{ \
u32 val32; \
\
- if (pci_hose_read_config_dword(hose, dev, offset & 0xfc, &val32) < 0)\
+ if (pci_hose_read_config_dword(hose, dev, offset & 0xfc, &val32) < 0) { \
+ *val = -1; \
return -1; \
+ } \
\
*val = (val32 >> ((offset & (int)off_mask) * 8)); \
\