]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
pci: Tidy up comments in pci_bind_bus_devices()
authorSimon Glass <sjg@chromium.org>
Sun, 29 Nov 2015 20:18:09 +0000 (13:18 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 12 Jan 2016 17:19:09 +0000 (10:19 -0700)
The current comments are confusing. We don't actually bind a generic device
when the device tree has no information. We try to scan available PCI
drivers. Update the comments to reflect this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c

index 478bdc99b7518fd377e05fd4c5890a00d89f8060..685df9d274e4ba1c960523fad72fc2482335fdaa 100644 (file)
@@ -674,9 +674,7 @@ int pci_bind_bus_devices(struct udevice *bus)
                /* Find this device in the device tree */
                ret = pci_bus_find_devfn(bus, PCI_MASK_BUS(bdf), &dev);
 
-               /* Search for a driver */
-
-               /* If nothing in the device tree, bind a generic device */
+               /* If nothing in the device tree, bind a device */
                if (ret == -ENODEV) {
                        struct pci_device_id find_id;
                        ulong val;