]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
gpio/hsdk: Depend on DM_GPIO instead of simple DM
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Sun, 10 Dec 2017 17:55:44 +0000 (20:55 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Tue, 12 Dec 2017 15:47:30 +0000 (18:47 +0300)
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---------------------

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Eugeniy Paltsev <paltsev@synopsys.com>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/gpio/Kconfig

index 2acb33bb51bc9bb709ae1f942f0c3acb99360f47..b4e859e40cfe3b7f4796f17a3be0985c06be6ab2 100644 (file)
@@ -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.