From: Simon Glass Date: Wed, 25 Sep 2019 14:56:13 +0000 (-0600) Subject: pci: Disable autoconfig in SPL X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=90c668605fa81ab5046a8b05c7a1fa858811d4bf;p=u-boot.git pci: Disable autoconfig in SPL At present U-Boot runs autoconfig in SPL but this is best left to U-Boot proper. For TPL and SPL we can normally used fixed BARs and save code size and time. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index 4c84c65685..896cb6b23a 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -983,7 +983,7 @@ static int pci_uclass_post_probe(struct udevice *bus) if (ret) return ret; -#ifdef CONFIG_PCI_PNP +#if CONFIG_IS_ENABLED(PCI_PNP) ret = pci_auto_config_devices(bus); if (ret < 0) return ret;