diff mbox series

[RESEND,2/4] powerpc: P1010RDB: Compile legacy PCIe routines conditionally

Message ID 20200501082814.45691-2-biwen.li@oss.nxp.com
State Superseded
Headers show
Series [RESEND,1/4] powerpc: Enable device tree support for P1010RDB | expand

Commit Message

Biwen Li (OSS) May 1, 2020, 8:28 a.m. UTC
From: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>

Compile the legacy PCIe initialization reoutines for P1010RDB
boards only when DM_PCI is not enabled.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
---
 board/freescale/p1010rdb/p1010rdb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/board/freescale/p1010rdb/p1010rdb.c b/board/freescale/p1010rdb/p1010rdb.c
index f49e679d01..11165d79c5 100644
--- a/board/freescale/p1010rdb/p1010rdb.c
+++ b/board/freescale/p1010rdb/p1010rdb.c
@@ -125,7 +125,7 @@  int board_early_init_r(void)
 	return 0;
 }
 
-#ifdef CONFIG_PCI
+#if defined(CONFIG_PCI) && !defined(CONFIG_DM_PCI)
 void pci_init_board(void)
 {
 	fsl_pcie_init_board(0);
@@ -612,7 +612,7 @@  int ft_board_setup(void *blob, bd_t *bd)
 	base = env_get_bootm_low();
 	size = env_get_bootm_size();
 
-#if defined(CONFIG_PCI)
+#if defined(CONFIG_PCI) && !defined(CONFIG_DM_PCI)
 	FT_FSL_PCI_SETUP;
 #endif