pinctrl: stm32: add 'depends on HAS_IOMEM' to fix unmet dependency
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 6 Mar 2018 11:15:56 +0000 (20:15 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 Mar 2018 03:04:40 +0000 (04:04 +0100)
These configs select MFD_SYSCON, but do not depend on HAS_IOMEM.

Compile testing on architecture without HAS_IOMEM causes "unmet
direct dependencies" in Kconfig phase.

Detected by "make ARCH=score allyesconfig".

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/Kconfig

index 1c4e00b2eb65e9d81fce19020ab0c1b985561ef9..cd3936e3afaa1fa269341efbdd982c21b82da3e2 100644 (file)
@@ -11,37 +11,37 @@ config PINCTRL_STM32
 
 config PINCTRL_STM32F429
        bool "STMicroelectronics STM32F429 pin control" if COMPILE_TEST && !MACH_STM32F429
-       depends on OF
+       depends on OF && HAS_IOMEM
        default MACH_STM32F429
        select PINCTRL_STM32
 
 config PINCTRL_STM32F469
        bool "STMicroelectronics STM32F469 pin control" if COMPILE_TEST && !MACH_STM32F469
-       depends on OF
+       depends on OF && HAS_IOMEM
        default MACH_STM32F469
        select PINCTRL_STM32
 
 config PINCTRL_STM32F746
        bool "STMicroelectronics STM32F746 pin control" if COMPILE_TEST && !MACH_STM32F746
-       depends on OF
+       depends on OF && HAS_IOMEM
        default MACH_STM32F746
        select PINCTRL_STM32
 
 config PINCTRL_STM32F769
        bool "STMicroelectronics STM32F769 pin control" if COMPILE_TEST && !MACH_STM32F769
-       depends on OF
+       depends on OF && HAS_IOMEM
        default MACH_STM32F769
        select PINCTRL_STM32
 
 config PINCTRL_STM32H743
        bool "STMicroelectronics STM32H743 pin control" if COMPILE_TEST && !MACH_STM32H743
-       depends on OF
+       depends on OF && HAS_IOMEM
        default MACH_STM32H743
        select PINCTRL_STM32
 
 config PINCTRL_STM32MP157
        bool "STMicroelectronics STM32MP157 pin control" if COMPILE_TEST && !MACH_STM32MP157
-       depends on OF
+       depends on OF && HAS_IOMEM
        default MACH_STM32MP157
        select PINCTRL_STM32
 endif