From: Geert Uytterhoeven Date: Tue, 6 Jun 2023 09:55:42 +0000 (+0200) Subject: reset: RESET_NUVOTON_MA35D1 should depend on ARCH_MA35 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=aead1076f3dbd16ec2241f94264b1a53989101cc;p=linux.git reset: RESET_NUVOTON_MA35D1 should depend on ARCH_MA35 The Nuvoton MA35D1 reset controller is only present on Nuvoton MA35 SoCs. Hence add a dependency on ARCH_MA35, to prevent asking the user about this driver when configuring a kernel without MA35 SoC support. Also, do not enable the driver by default when merely compile-testing. While at it, fix a misspelling of "Nuvoton". Fixes: e4bb55d6ccf0f774 ("reset: Add Nuvoton ma35d1 reset driver support") Signed-off-by: Geert Uytterhoeven Reviewed-by: Ilpo Järvinen Signed-off-by: Arnd Bergmann --- diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 07499177a266c..d9ac540c00ab5 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -144,8 +144,9 @@ config RESET_NPCM BMC SoCs. config RESET_NUVOTON_MA35D1 - bool "Nuvton MA35D1 Reset Driver" - default ARCH_MA35 || COMPILE_TEST + bool "Nuvoton MA35D1 Reset Driver" + depends on ARCH_MA35 || COMPILE_TEST + default ARCH_MA35 help This enables the reset controller driver for Nuvoton MA35D1 SoC.