aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-11-29 13:18:09 -0700
committerSimon Glass <sjg@chromium.org>2016-01-12 10:19:09 -0700
commit8bd42525faef16c8459e7985d1732250bc50d525 (patch)
treedd0f13d176892e8e435b300d6c185080ba443465
parent4abe8e40a73146bbe9fe825c53c70076ccc9544f (diff)
downloadu-boot-8bd42525faef16c8459e7985d1732250bc50d525.zip
u-boot-8bd42525faef16c8459e7985d1732250bc50d525.tar.gz
u-boot-8bd42525faef16c8459e7985d1732250bc50d525.tar.bz2
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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r--drivers/pci/pci-uclass.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index 478bdc9..685df9d 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;