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>
This commit is contained in:
parent
4abe8e40a7
commit
8bd42525fa
|
@ -674,9 +674,7 @@ int pci_bind_bus_devices(struct udevice *bus)
|
||||||
/* Find this device in the device tree */
|
/* Find this device in the device tree */
|
||||||
ret = pci_bus_find_devfn(bus, PCI_MASK_BUS(bdf), &dev);
|
ret = pci_bus_find_devfn(bus, PCI_MASK_BUS(bdf), &dev);
|
||||||
|
|
||||||
/* Search for a driver */
|
/* If nothing in the device tree, bind a device */
|
||||||
|
|
||||||
/* If nothing in the device tree, bind a generic device */
|
|
||||||
if (ret == -ENODEV) {
|
if (ret == -ENODEV) {
|
||||||
struct pci_device_id find_id;
|
struct pci_device_id find_id;
|
||||||
ulong val;
|
ulong val;
|
||||||
|
|
Loading…
Reference in New Issue