aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Dunlap <[email protected]>2021-01-18 19:18:13 -0800
committerBartosz Golaszewski <[email protected]>2021-01-19 12:09:42 +0100
commit18eedf2b5ec7c8ce2bb23d9148cfd63949207414 (patch)
treefd84f947cda87bd16f502b74c6f46122e7b415c2
parente73b0101ae5124bf7cd3fb5d250302ad2f16a416 (diff)
gpio: sifive: select IRQ_DOMAIN_HIERARCHY rather than depend on it
This is the only driver in the kernel source tree that depends on IRQ_DOMAIN_HIERARCHY instead of selecting it. Since it is not a visible Kconfig symbol, depending on it (expecting a user to set/enable it) doesn't make much sense, so change it to select instead of "depends on". Fixes: 96868dce644d ("gpio/sifive: Add GPIO driver for SiFive SoCs") Signed-off-by: Randy Dunlap <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Bartosz Golaszewski <[email protected]> Cc: [email protected] Cc: Thierry Reding <[email protected]> Cc: Greentime Hu <[email protected]> Cc: Yash Shah <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
-rw-r--r--drivers/gpio/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index c70f46e80a3b..64291ce454c3 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -521,7 +521,8 @@ config GPIO_SAMA5D2_PIOBU
config GPIO_SIFIVE
bool "SiFive GPIO support"
- depends on OF_GPIO && IRQ_DOMAIN_HIERARCHY
+ depends on OF_GPIO
+ select IRQ_DOMAIN_HIERARCHY
select GPIO_GENERIC
select GPIOLIB_IRQCHIP
select REGMAP_MMIO