pinctrl: stm32: select IRQ_DOMAIN_HIERARCHY instead of depends on

Drivers that need IRQ_DOMAIN_HIERARCHY should "select" it, but
drivers/pinctrl/stm32/Kconfig is the only exception that uses
"depends on" syntax. This prevents GPIO drivers from select'ing
IRQ_DOMAIN_HIERARCHY.

For example, if I add "select IRQ_DOMAIN_HIERARCHY" to GPIO_XGENE_SB,
I get the following recursive dependency error.

drivers/gpio/Kconfig:13:error: recursive dependency detected!
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/gpio/Kconfig:13: symbol GPIOLIB is selected by PINCTRL_STM32
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/pinctrl/stm32/Kconfig:3: symbol PINCTRL_STM32 is selected by PINCTRL_STM32F429
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/pinctrl/stm32/Kconfig:11: symbol PINCTRL_STM32F429 depends on IRQ_DOMAIN_HIERARCHY
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
kernel/irq/Kconfig:67: symbol IRQ_DOMAIN_HIERARCHY is selected by GPIO_XGENE_SB
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/gpio/Kconfig:502: symbol GPIO_XGENE_SB depends on GPIOLIB

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by Masahiro Yamada and committed by Linus Walleij 8db63f53 fa8f6d06

+5 -4
+5 -4
drivers/pinctrl/stm32/Kconfig
··· 6 6 select PINMUX 7 7 select GENERIC_PINCONF 8 8 select GPIOLIB 9 + select IRQ_DOMAIN_HIERARCHY 9 10 select MFD_SYSCON 10 11 11 12 config PINCTRL_STM32F429 12 13 bool "STMicroelectronics STM32F429 pin control" if COMPILE_TEST && !MACH_STM32F429 13 - depends on OF && IRQ_DOMAIN_HIERARCHY 14 + depends on OF 14 15 default MACH_STM32F429 15 16 select PINCTRL_STM32 16 17 17 18 config PINCTRL_STM32F469 18 19 bool "STMicroelectronics STM32F469 pin control" if COMPILE_TEST && !MACH_STM32F469 19 - depends on OF && IRQ_DOMAIN_HIERARCHY 20 + depends on OF 20 21 default MACH_STM32F469 21 22 select PINCTRL_STM32 22 23 23 24 config PINCTRL_STM32F746 24 25 bool "STMicroelectronics STM32F746 pin control" if COMPILE_TEST && !MACH_STM32F746 25 - depends on OF && IRQ_DOMAIN_HIERARCHY 26 + depends on OF 26 27 default MACH_STM32F746 27 28 select PINCTRL_STM32 28 29 29 30 config PINCTRL_STM32H743 30 31 bool "STMicroelectronics STM32H743 pin control" if COMPILE_TEST && !MACH_STM32H743 31 - depends on OF && IRQ_DOMAIN_HIERARCHY 32 + depends on OF 32 33 default MACH_STM32H743 33 34 select PINCTRL_STM32 34 35 endif