Skip to contentSkip to conversation

gpio/hsdk: Depend on DM_GPIO instead of simple DM

PATCH New Alexey Brodkin 2 participants 2 messages Dec 10, 2017 – Dec 12, 2017 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio/hsdk: Depend on DM_GPIO instead of simple DM

This driver really is DM GPIO one and so we need to have a correct dependency, because DM alone doesn't provide required for CMD_GPIO call and we're seeing build failures like this:
---------------------->8--------------------- cmd/built-in.o: In function 'do_gpio':
.../cmd/gpio.c:188: undefined reference to 'gpio_request'
...
---------------------->8---------------------

Cc Eugeniy Paltsev <[email protected]>
Cc Simon Glass <[email protected]>
---
 drivers/gpio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/Kconfig +1 -1
index 2acb33bb51bc..b4e859e40cfe 100644
@@ -82,7 +82,7 @@ config IMX_RGPIO2P
 
 config HSDK_CREG_GPIO
 	bool "HSDK CREG GPIO griver"
-	depends on DM
+	depends on DM_GPIO
 	default n
 	help
 	  This driver supports CREG GPIOs on Synopsys HSDK SOC.
Signature · 1 line
2.7.5
#1 lore raw

PATCH 1/1 gpio/hsdk: Depend on DM_GPIO instead of simple DM

Quoted 9 lines · Alexey Brodkin

This driver really is DM GPIO one and so we need to have a correct dependency, because DM alone doesn't provide required for CMD_GPIO call and we're seeing build failures like this:
---------------------->8--------------------- cmd/built-in.o: In function 'do_gpio':
.../cmd/gpio.c:188: undefined reference to 'gpio_request'
...
---------------------->8---------------------

Quoted 6 lines
Cc Eugeniy Paltsev <[email protected]>
Cc Simon Glass <[email protected]>
---
 drivers/gpio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)