powerpc: mpc85xx: Update the condition to compile PCI routines
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Mon, 22 Apr 2019 13:50:34 +0000 (21:50 +0800)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Thu, 20 Jun 2019 05:14:10 +0000 (10:44 +0530)
Compile the routines of mpc85xx/pci.c when both FSL_PCI_INIT
and DM_PCI are not enabled.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
arch/powerpc/cpu/mpc85xx/pci.c

index 90ccc3427c7bda313369c70570a279d125387fbe..1d0213a513cdb5797cb4679d6b1f055f755a9b8f 100644 (file)
@@ -12,7 +12,7 @@
 #include <asm/cpm_85xx.h>
 #include <pci.h>
 
-#if !defined(CONFIG_FSL_PCI_INIT)
+#if !defined(CONFIG_FSL_PCI_INIT) && !defined(CONFIG_DM_PCI)
 
 #ifndef CONFIG_SYS_PCI1_MEM_BUS
 #define CONFIG_SYS_PCI1_MEM_BUS CONFIG_SYS_PCI1_MEM_BASE