diff mbox series

[1/1] gpio: Fix dependency for gpio-delay

Message ID 20230605072518.256568-1-alexander.stein@ew.tq-group.com
State New
Headers show
Series [1/1] gpio: Fix dependency for gpio-delay | expand

Commit Message

Alexander Stein June 5, 2023, 7:25 a.m. UTC
This driver relies on OF_GPIO features, add a dependency to Kconfig.

Fixes: cf5dec80c4e2 ("gpio: Add gpio delay driver")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
This was undetected on my machine as CONFIG_OF_GPIO was already enabled.

 drivers/gpio/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Bartosz Golaszewski June 5, 2023, 7:37 a.m. UTC | #1
On Mon, Jun 5, 2023 at 9:25 AM Alexander Stein
<alexander.stein@ew.tq-group.com> wrote:
>
> This driver relies on OF_GPIO features, add a dependency to Kconfig.
>
> Fixes: cf5dec80c4e2 ("gpio: Add gpio delay driver")
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> This was undetected on my machine as CONFIG_OF_GPIO was already enabled.
>
>  drivers/gpio/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> index a1dac1345f60f..006abaedcae82 100644
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -1735,6 +1735,7 @@ config GPIO_AGGREGATOR
>
>  config GPIO_DELAY
>         tristate "GPIO delay"
> +       depends on OF_GPIO
>         help
>           Say yes here to enable the GPIO delay, which provides a way to
>           configure platform specific delays for GPIO ramp-up or ramp-down
> --
> 2.34.1
>

Thanks, applied, just noticed the regression report too.

Bart
diff mbox series

Patch

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index a1dac1345f60f..006abaedcae82 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -1735,6 +1735,7 @@  config GPIO_AGGREGATOR
 
 config GPIO_DELAY
 	tristate "GPIO delay"
+	depends on OF_GPIO
 	help
 	  Say yes here to enable the GPIO delay, which provides a way to
 	  configure platform specific delays for GPIO ramp-up or ramp-down