[PATCH] soc: nuvoton: Fix Kconfig

From: Jonathan Neuschäfer
Date: Sun Feb 12 2023 - 06:31:36 EST


Unfortunately, version 5 of the Nuvoton WPCM450 SoC driver was applied
to bmc.git, which misses a few fixes that were in version 6.

This patch adds the missing fixes:

- Add a menu "Nuvoton SoC drivers" to make it easier to add other
Nuvoton SoC drivers later on
- select CONFIG_REGMAP from CONFIG_WPCM450_SOC

Reported-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Fixes: 77b8c67b5637 ("soc: nuvoton: Add SoC info driver for WPCM450")
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@xxxxxxx>
---
drivers/soc/nuvoton/Kconfig | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/soc/nuvoton/Kconfig b/drivers/soc/nuvoton/Kconfig
index df46182088ec2..2167d3d739d84 100644
--- a/drivers/soc/nuvoton/Kconfig
+++ b/drivers/soc/nuvoton/Kconfig
@@ -1,11 +1,17 @@
# SPDX-License-Identifier: GPL-2.0
-menuconfig WPCM450_SOC
+menu "Nuvoton SoC drivers"
+ depends on ARCH_NPCM || COMPILE_TEST
+
+config WPCM450_SOC
tristate "Nuvoton WPCM450 SoC driver"
default y if ARCH_WPCM450
select SOC_BUS
+ select REGMAP
help
Say Y here to compile the SoC information driver for Nuvoton
WPCM450 SoCs.

This driver provides information such as the SoC model and
revision.
+
+endmenu
--
2.39.1