[U-Boot] [PATCH] gpio: Kconfig: DM_GPIO depends on OF_CONTROL

Building U-Boot with DM_GPIO set, but with OF_CONTROL unset fails.
Fixes: drivers/gpio/built-in.o: In function `gpio_request_tail': drivers/gpio/gpio-uclass.c:666: undefined reference to `ofnode_get_name' drivers/gpio/built-in.o: In function `_gpio_request_by_name_nodev': drivers/gpio/gpio-uclass.c:693: undefined reference to `ofnode_parse_phandle_with_args'
Signed-off-by: Jörg Krause joerg.krause@embedded.rocks --- drivers/gpio/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index ffeda9425a..d79beeafb5 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -7,6 +7,7 @@ menu "GPIO Support" config DM_GPIO bool "Enable Driver Model for GPIO drivers" depends on DM + depends on OF_CONTROL help Enable driver model for GPIO access. The standard GPIO interface (gpio_get_value(), etc.) is then implemented by
participants (1)
-
Jörg Krause