]> git.sur5r.net Git - u-boot/blobdiff - drivers/pci/pci-uclass.c
mtd: pxa3xx_nand: Correct null dereference
[u-boot] / drivers / pci / pci-uclass.c
index 61292d72bda8f1c496370ab0d72489e0b880bc42..d01bfc12e44f28ec58a30d93eaca55aef63923f0 100644 (file)
@@ -1241,3 +1241,18 @@ U_BOOT_DRIVER(pci_generic_drv) = {
        .id             = UCLASS_PCI_GENERIC,
        .of_match       = pci_generic_ids,
 };
+
+void pci_init(void)
+{
+       struct udevice *bus;
+
+       /*
+        * 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);
+            bus;
+            uclass_next_device(&bus)) {
+               ;
+       }
+}