PCI: dwc: Clean up Kconfig dependencies (PCIE_DW_EP)
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 23 Jun 2021 14:01:03 +0000 (17:01 +0300)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 7 Oct 2021 14:55:51 +0000 (15:55 +0100)
The "depends on" Kconfig construct is a no-op in options that
are selected and therefore has no effect. Remove it.

Clean up the users of PCIE_DW_EP and introduce idiom

depends on PCI_ENDPOINT
select PCIE_DW_EP

for all of them.

Link: https://lore.kernel.org/r/20210623140103.47818-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/dwc/Kconfig

index 8c2028e2eca696b0b6d3c52dd0e8ad066656bcfc..6c4ee84053b5b18057df7a784eecad0adefe5e6f 100644 (file)
@@ -12,7 +12,6 @@ config PCIE_DW_HOST
 
 config PCIE_DW_EP
        bool
-       depends on PCI_ENDPOINT
        select PCIE_DW
 
 config PCI_DRA7XX
@@ -37,8 +36,8 @@ config PCI_DRA7XX_HOST
 config PCI_DRA7XX_EP
        tristate "TI DRA7xx PCIe controller Endpoint Mode"
        depends on SOC_DRA7XX || COMPILE_TEST
-       depends on PCI_ENDPOINT
        depends on OF && HAS_IOMEM && TI_PIPE3
+       depends on PCI_ENDPOINT
        select PCIE_DW_EP
        select PCI_DRA7XX
        help