diff options
author | Tom Rini <trini@ti.com> | 2014-08-25 08:34:39 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-08-25 08:34:39 -0400 |
commit | 7bee1c91a94db19bd26f92cc67be35d3592c6429 (patch) | |
tree | a8e29376b47450c7a3b653e16df3ff9f603f2ca3 /drivers/pci/pci.c | |
parent | 055626acba2754d3311204ad361b1828a4f8aaf6 (diff) | |
parent | 9fa7bbc126d697f1415adbac72bb7f6d978ff50d (diff) |
Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index ed113bf402..4fd9c532b3 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -323,7 +323,7 @@ int __pci_hose_bus_to_phys(struct pci_controller *hose, continue; if (bus_addr >= res->bus_start && - bus_addr < res->bus_start + res->size) { + (bus_addr - res->bus_start) < res->size) { *pa = (bus_addr - res->bus_start + res->phys_start); return 0; } |