summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-06-07 08:50:41 -0600
committerSimon Glass <sjg@chromium.org>2015-07-14 18:03:18 -0600
commit5afeb4bb456de129a88f38fae1573564cd53fc41 (patch)
treed7561dccc9270cb5e100d6f0da6d89561bf8263f /drivers/pci
parentaec241dfb45e7763716c1cbc98942cb01a3a77fd (diff)
downloadu-boot-imx-5afeb4bb456de129a88f38fae1573564cd53fc41.zip
u-boot-imx-5afeb4bb456de129a88f38fae1573564cd53fc41.tar.gz
u-boot-imx-5afeb4bb456de129a88f38fae1573564cd53fc41.tar.bz2
dm: pci: Correct bus number when scanning sub-buses
The sub-bus passed to pciauto_prescan_setup_bridge() is incorrect. Fix it so that sub-buses are numbered correctly. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index 41d19cb..edec93f 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -334,7 +334,7 @@ int dm_pci_hose_probe_bus(struct pci_controller *hose, pci_dev_t bdf)
sub_bus = pci_get_bus_max() + 1;
debug("%s: bus = %d/%s\n", __func__, sub_bus, bus->name);
- pciauto_prescan_setup_bridge(hose, bdf, bus->seq);
+ pciauto_prescan_setup_bridge(hose, bdf, sub_bus);
ret = device_probe(bus);
if (ret) {