[U-Boot] [PATCH] dm: pci: Fix build error in pci_auto_config_devices()

Bin Meng bmeng.cn at gmail.com
Sat Jul 25 12:44:58 CEST 2015


This needs to be squashed into commit e34580b to fix the build error
in pci_auto_config_devices().

Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---

 drivers/pci/pci-uclass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index e87b7d0..c7d93f9 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -304,7 +304,7 @@ int pci_auto_config_devices(struct udevice *bus)
 		unsigned int max_bus;
 
 		debug("%s: device %s\n", __func__, dev->name);
-		max_bus = pciauto_config_device(hose, bdf);
+		max_bus = pciauto_config_device(hose, pci_get_bdf(dev));
 		sub_bus = max(sub_bus, max_bus);
 	}
 	debug("%s: done\n", __func__);
-- 
1.8.2.1



More information about the U-Boot mailing list