Skip to content

Commit

Permalink
reset: RESET_NUVOTON_MA35D1 should depend on ARCH_MA35
Browse files Browse the repository at this point in the history
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: e4bb55d ("reset: Add Nuvoton ma35d1 reset driver support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Geert Uytterhoeven authored and Arnd Bergmann committed Jun 6, 2023
1 parent 207656f commit aead107
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/reset/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit aead107

Please sign in to comment.