From: Hou Zhiqiang Date: Mon, 22 Apr 2019 13:58:13 +0000 (+0800) Subject: powerpc: T208xQDS: Compile the legacy PCIe routines conditionally X-Git-Tag: v2019.07~23^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15311c85dba534408df8f255252a6761ad313d32;p=platform%2Fkernel%2Fu-boot.git powerpc: T208xQDS: Compile the legacy PCIe routines conditionally Compile the legacy PCIe initialization reoutines only when DM_PCI is not enabled. Signed-off-by: Hou Zhiqiang Reviewed-by: Simon Glass Reviewed-by: Prabhakar Kushwaha --- diff --git a/board/freescale/t208xqds/pci.c b/board/freescale/t208xqds/pci.c index c761aea..ef26f14 100644 --- a/board/freescale/t208xqds/pci.c +++ b/board/freescale/t208xqds/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