]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
gpio: fix SNPS_CREG kconfig dependency warning
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 13 Oct 2018 03:46:29 +0000 (20:46 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Oct 2018 14:23:44 +0000 (16:23 +0200)
Fix kconfig warning for GPIO_SNPS_CREG:

WARNING: unmet direct dependencies detected for OF_GPIO
  Depends on [n]: GPIOLIB [=y] && OF [=n] && HAS_IOMEM [=y]
  Selected by [y]:
  - GPIO_SNPS_CREG [=y] && GPIOLIB [=y] && HAS_IOMEM [=y] && (ARC || COMPILE_TEST [=y])

Drivers in drivers/gpio/Kconfig depend on OF_GPIO, not select it.
This prevents attempting to build when OF is not enabled.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org
Cc: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig

index 2bb9ff243f3fbe55814d3ed0a01acb96d11c2dd6..833a1b51c9482c720d42c53421a41c3b8ba30668 100644 (file)
@@ -440,7 +440,7 @@ config GPIO_SIOX
 config GPIO_SNPS_CREG
        bool "Synopsys GPIO via CREG (Control REGisters) driver"
        depends on ARC || COMPILE_TEST
-       select OF_GPIO
+       depends on OF_GPIO
        help
          This driver supports GPIOs via CREG on various Synopsys SoCs.
          This is a single-register MMIO GPIO driver for complex cases