PCI: dra7xx: Don't select CONFIG_PCI_DRA7XX_HOST by default
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 8 Apr 2020 23:10:54 +0000 (18:10 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 24 Apr 2020 19:34:52 +0000 (14:34 -0500)
Drivers should not be selected by default because that bloats the kernel
for people who don't need them.

Enable CONFIG_PCI_DRA7XX_HOST by default only if SOC_DRA7XX.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: linux-omap@vger.kernel.org
drivers/pci/controller/dwc/Kconfig

index 03dcaf6..55d93b4 100644 (file)
@@ -26,7 +26,7 @@ config PCI_DRA7XX_HOST
        depends on OF && HAS_IOMEM && TI_PIPE3
        select PCIE_DW_HOST
        select PCI_DRA7XX
-       default y
+       default y if SOC_DRA7XX
        help
          Enables support for the PCIe controller in the DRA7xx SoC to work in
          host mode. There are two instances of PCIe controller in DRA7xx.