From: Simon Glass Date: Sun, 29 Nov 2015 20:18:09 +0000 (-0700) Subject: pci: Tidy up comments in pci_bind_bus_devices() X-Git-Tag: v2016.03-rc1~382^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8bd42525faef16c8459e7985d1732250bc50d525;p=u-boot pci: Tidy up comments in pci_bind_bus_devices() 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 Reviewed-by: Bin Meng --- diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index 478bdc99b7..685df9d274 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -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;