From: Hou Zhiqiang Date: Tue, 27 Aug 2019 11:03:41 +0000 (+0000) Subject: powerpc: T104xRDB: Compile legacy PCIe routines conditionally X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=6aefcc8cc79e1c5d3b66b29576d456c30435b8d7;p=u-boot.git powerpc: T104xRDB: Compile legacy PCIe routines conditionally Compile the legacy PCIe initialization routines 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/t104xrdb/pci.c b/board/freescale/t104xrdb/pci.c index 9fd66594f4..6b666ba2d2 100644 --- a/board/freescale/t104xrdb/pci.c +++ b/board/freescale/t104xrdb/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