From: Hou Zhiqiang Date: Tue, 27 Aug 2019 11:04:22 +0000 (+0000) Subject: powerpc: p_corenet: Compile legacy PCIe routines conditionally X-Git-Tag: v2019.10-rc4~29^2~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5833a35748dce472a270264b01b32350423721fd;p=oweals%2Fu-boot.git powerpc: p_corenet: Compile legacy PCIe routines conditionally Compile the legacy PCIe initialization routines for P2041RDB, P3041, P4080, P5020 and P5040 DS boards only when DM_PCI is not enabled. Signed-off-by: Hou Zhiqiang Reviewed-by: Bin Meng Reviewed-by: Prabhakar Kushwaha --- diff --git a/board/freescale/common/p_corenet/pci.c b/board/freescale/common/p_corenet/pci.c index a2df928fc5..a6abe66dc0 100644 --- a/board/freescale/common/p_corenet/pci.c +++ b/board/freescale/common/p_corenet/pci.c @@ -11,6 +11,7 @@ #include #include +#if !defined(CONFIG_DM_PCI) void pci_init_board(void) { fsl_pcie_init_board(0); @@ -20,3 +21,4 @@ void pci_of_setup(void *blob, bd_t *bd) { FT_FSL_PCI_SETUP; } +#endif