pci: ensure enumeration of all devices in pci_init
[oweals/u-boot.git] / drivers / pci / pci-uclass.c
index c74ebf6a7635c7579351049c289cca0de308066d..ab3e1310eb546d030139d8ead14094890b7cff35 100644 (file)
@@ -1572,9 +1572,9 @@ void pci_init(void)
         * Enumerate all known controller devices. Enumeration has the side-
         * effect of probing them, so PCIe devices will be enumerated too.
         */
-       for (uclass_first_device(UCLASS_PCI, &bus);
+       for (uclass_first_device_check(UCLASS_PCI, &bus);
             bus;
-            uclass_next_device(&bus)) {
+            uclass_next_device_check(&bus)) {
                ;
        }
 }