]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: PINCTRL_K230 should depend on ARCH_CANAAN
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 15 Oct 2024 09:55:58 +0000 (11:55 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Oct 2024 21:59:41 +0000 (23:59 +0200)
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: 545887eab6f6776a ("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>
drivers/pinctrl/Kconfig

index 3fab5ebeb2e07f500da0b3fbbee258a33ac00275..f64126a8d9a935e928743ef910c82d7bd32f290f 100644 (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