diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-03-16 14:40:59 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-03-25 10:16:32 +0100 |
commit | febb4ee23a412f42fdd6d0fdef692bb9c5e1fad3 (patch) | |
tree | 4931bf250d48c0576d208e42ed4a033365e70619 /drivers/pinctrl/Kconfig | |
parent | 42a46434e9b18b35d2e57433cdbeff3233ca9765 (diff) | |
download | linux-febb4ee23a412f42fdd6d0fdef692bb9c5e1fad3.tar.bz2 |
pinctrl: PINCTRL_ROCKCHIP should depend on ARCH_ROCKCHIP
The Rockchip GPIO and pin control modules are only present on Rockchip
SoCs. Hence add a dependency on ARCH_ROCKCHIP, to prevent asking the
user about this driver when configuring a kernel without Rockchip
platform support.
Note that before, the PINCTRL_ROCKCHIP symbol was not visible, and
automatically selected when needed. By making it tristate and
user-selectable, it became visible for everyone.
Fixes: be786ac5a6c4bf4e ("pinctrl: rockchip: make driver be tristate module")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20210316134059.2377081-1-geert+renesas@glider.be
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/Kconfig')
-rw-r--r-- | drivers/pinctrl/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index ef0ae9b562cd..9502775afc11 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -209,6 +209,7 @@ config PINCTRL_OXNAS config PINCTRL_ROCKCHIP tristate "Rockchip gpio and pinctrl driver" + depends on ARCH_ROCKCHIP || COMPILE_TEST depends on OF select GPIOLIB select PINMUX |