Skip to contentSkip to conversation

gpio: Kconfig: DM_GPIO depends on OF_CONTROL

PATCH New Jörg Krause 1 participant 1 message Sep 15, 2017 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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'

---
 drivers/gpio/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/Kconfig +1 -0
index ffeda9425a..d79beeafb5 100644
@@ -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
Signature · 1 line
2.14.1