From 627c253cab1df24222f1ac02f1e60d33ee7dbcad Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Fri, 1 Jul 2022 13:23:44 -0500 Subject: [PATCH] drivers: gpio: Change DW driver to use depends on instead of select In prepration for configuring I2C/SPI defaults at the board level, change the DesignWare GPIO driver's clock gate option to depend on clock control instead of selecting clock control. This breaks a Kconfig dependency loop when adding the following to a board's Kconfig.defconfig: config SPI default y if SENSOR There aren't any in-tree users that enable the clock gate option, so there aren't any places in-tree that now need to enable the clock control driver. Out-of-tree users that set CONFIG_GPIO_DW_CLOCK_GATE=y will now also need to set CONFIG_CLOCK_CONTROL=y. Signed-off-by: Maureen Helm --- drivers/gpio/Kconfig.dw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig.dw b/drivers/gpio/Kconfig.dw index e4d23cffc7..e3e6fb3197 100644 --- a/drivers/gpio/Kconfig.dw +++ b/drivers/gpio/Kconfig.dw @@ -15,7 +15,7 @@ config GPIO_DW_SHARED_IRQ config GPIO_DW_CLOCK_GATE bool "Clock gating" - select CLOCK_CONTROL + depends on CLOCK_CONTROL config GPIO_DW_CLOCK_GATE_DRV_NAME string