Commit a7c0b4b8 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Walleij
Browse files

gpio: fix SNPS_CREG kconfig dependency warning

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: default avatarRandy Dunlap <>
Cc: Linus Walleij <>
Cc: Eugeniy Paltsev <>
Signed-off-by: default avatarLinus Walleij <>
parent 767cd17a
......@@ -440,7 +440,7 @@ config GPIO_SIOX
bool "Synopsys GPIO via CREG (Control REGisters) driver"
depends on ARC || COMPILE_TEST
select OF_GPIO
depends on OF_GPIO
This driver supports GPIOs via CREG on various Synopsys SoCs.
This is a single-register MMIO GPIO driver for complex cases
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment