From: Alex Marginean Date: Thu, 30 May 2019 16:28:31 +0000 (+0300) Subject: armv8: fsl-layerscape: fix config dependency for layerscape pci code X-Git-Tag: v2019.07~26^2~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4da0e52c9dc04b74d230e32d1bda5d751cc6f41f;p=oweals%2Fu-boot.git armv8: fsl-layerscape: fix config dependency for layerscape pci code Fixes a link error on layerscape platform, linking fails with CONFIG_PCI set and CONFIG_PCI_LAYERSCAPE unset. Signed-off-by: Alex Marginean Reviewed-by: Bin Meng Reviewed-by: Prabhakar Kushwaha --- diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c index 11117657fe..fabe0f0359 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c @@ -435,7 +435,7 @@ void ft_cpu_setup(void *blob, bd_t *bd) do_fixup_by_path_u32(blob, "/sysclk", "clock-frequency", CONFIG_SYS_CLK_FREQ, 1); -#ifdef CONFIG_PCI +#ifdef CONFIG_PCI_LAYERSCAPE ft_pci_setup(blob, bd); #endif