Commit 0a03658d authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Linus Walleij

pinctrl: at91-pio4: Make PINCTRL_AT91PIO4 depend on HAS_IOMEM to fix build error

If CONFIG_HAS_IOMEM is not set, devm_platform_ioremap_resource() will
be not built in drivers/base/platform.c and then there exists a build
error about undefined reference to "devm_platform_ioremap_resource"
in pinctrl-at91-pio4.c under COMPILE_TEST and CONFIG_PINCTRL_AT91PIO4,
make PINCTRL_AT91PIO4 depend on HAS_IOMEM to fix it.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Link: https://lore.kernel.org/r/1606209423-4742-1-git-send-email-yangtiezhu@loongson.cnSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 517c3f5a
...@@ -82,6 +82,7 @@ config PINCTRL_AT91 ...@@ -82,6 +82,7 @@ config PINCTRL_AT91
config PINCTRL_AT91PIO4 config PINCTRL_AT91PIO4
bool "AT91 PIO4 pinctrl driver" bool "AT91 PIO4 pinctrl driver"
depends on OF depends on OF
depends on HAS_IOMEM
depends on ARCH_AT91 || COMPILE_TEST depends on ARCH_AT91 || COMPILE_TEST
select PINMUX select PINMUX
select GENERIC_PINCONF select GENERIC_PINCONF
......
Markdown is supported
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