Skip to content

Commit 642490b

Browse files
geertulinusw
authored andcommitted
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: 545887e ("pinctrl: canaan: Add support for k230 SoC") Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/d70279ba02a67250203744b38314f4475b3c5671.1728986052.git.geert+renesas@glider.be Signed-off-by: Linus Walleij <[email protected]>
1 parent 60ba5da commit 642490b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pinctrl/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ config PINCTRL_K210
271271
config PINCTRL_K230
272272
bool "Pinctrl driver for the Canaan Kendryte K230 SoC"
273273
depends on OF
274+
depends on ARCH_CANAAN || COMPILE_TEST
274275
select GENERIC_PINCTRL_GROUPS
275276
select GENERIC_PINMUX_FUNCTIONS
276277
select GENERIC_PINCONF

0 commit comments

Comments
 (0)