armv8: fsl-layerscape: fix config dependency for layerscape pci code
authorAlex Marginean <alexm.osslist@gmail.com>
Thu, 30 May 2019 16:28:31 +0000 (19:28 +0300)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Wed, 19 Jun 2019 07:24:57 +0000 (12:54 +0530)
Fixes a link error on layerscape platform, linking fails with CONFIG_PCI
set and CONFIG_PCI_LAYERSCAPE unset.

Signed-off-by: Alex Marginean <alexm.osslist@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/fdt.c

index 11117657feada10551d75b5fda42bc6afc0472a1..fabe0f03593794cc8d5dec5c4f8e9bd5caa270b4 100644 (file)
@@ -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