]> git.sur5r.net Git - u-boot/blobdiff - drivers/pci/pci-uclass.c
Merge branch 'master' of git://git.denx.de/u-boot-spi
[u-boot] / drivers / pci / pci-uclass.c
index 342b78c0c4ba566518284fe04d5e64468e921c72..3b00e6a41b36c040e3c1298bf4f5b1248c51872a 100644 (file)
@@ -837,7 +837,7 @@ static int pci_uclass_pre_probe(struct udevice *bus)
        hose = bus->uclass_priv;
 
        /* For bridges, use the top-level PCI controller */
-       if (device_get_uclass_id(bus->parent) == UCLASS_ROOT) {
+       if (!device_is_on_pci_bus(bus)) {
                hose->ctlr = bus;
                ret = decode_regions(hose, gd->fdt_blob, bus->parent->of_offset,
                                bus->of_offset);