pci: imx: Drop DM_PCI check from cpu driver
authorSimon Glass <sjg@chromium.org>
Mon, 2 Aug 2021 00:54:35 +0000 (18:54 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 5 Aug 2021 23:46:35 +0000 (19:46 -0400)
We don't need this check anymore since when PCI is enabled, driver model
is always used.

Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-imx/cpu.c
include/pci.h

index 423b715..8eb05c8 100644 (file)
@@ -283,10 +283,6 @@ u32 get_ahb_clk(void)
 
 void arch_preboot_os(void)
 {
-#if defined(CONFIG_PCIE_IMX) && !CONFIG_IS_ENABLED(DM_PCI)
-       imx_pcie_remove();
-#endif
-
 #if defined(CONFIG_IMX_AHCI)
        struct udevice *dev;
        int rc;
index fed8297..4d77113 100644 (file)
@@ -836,10 +836,6 @@ int pci_last_busno(void);
 extern void pci_mpc85xx_init (struct pci_controller *hose);
 #endif
 
-#ifdef CONFIG_PCIE_IMX
-extern void imx_pcie_remove(void);
-#endif
-
 /**
  * pci_write_bar32() - Write the address of a BAR including control bits
  *