pinctrl: PINCTRL_K230 should depend on ARCH_CANAAN

The Canaan Kendryte K230 pin controller is only present on Canaan
Kendryte K230 SoCs.  Hence add a dependency on ARCH_CANAAN, to prevent
asking the user about this driver when configuring a kernel without
Canaan Kendryte series SoC platform support.

Fixes: 545887eab6 ("pinctrl: canaan: Add support for k230 SoC")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/d70279ba02a67250203744b38314f4475b3c5671.1728986052.git.geert+renesas@glider.be
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Geert Uytterhoeven 2024-10-15 11:55:58 +02:00 committed by Linus Walleij
parent 60ba5da29a
commit 642490b50a

View File

@ -271,6 +271,7 @@ config PINCTRL_K210
config PINCTRL_K230
bool "Pinctrl driver for the Canaan Kendryte K230 SoC"
depends on OF
depends on ARCH_CANAAN || COMPILE_TEST
select GENERIC_PINCTRL_GROUPS
select GENERIC_PINMUX_FUNCTIONS
select GENERIC_PINCONF