[PATCH] watchdog: atcwdt200: select REGMAP_MMIO
From: Pengpeng Hou
Date: Mon Nov 30 2026 - 08:04:19 EST
atcwdt200_wdt.c initializes an MMIO regmap using
devm_regmap_init_mmio(), but ATCWDT200_WATCHDOG does not select
REGMAP_MMIO. The driver can therefore be enabled without the
required register-transport implementation and fail to build.
Select REGMAP_MMIO so the backend is enabled at the linkage level
required by this consumer, rather than relying on another driver to
pull it in.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: e4e0848ad046 ("watchdog: atcwdt200: Add driver for Andes ATCWDT200")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/watchdog/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index f7d0a0c..9123f72 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -2149,6 +2149,7 @@ config WATCHDOG_RTAS
config ATCWDT200_WATCHDOG
tristate "Andes ATCWDT200 Watchdog support"
depends on ARCH_ANDES || COMPILE_TEST
+ select REGMAP_MMIO
help
Driver for the Andes ATCWDT200 watchdog timer. It provides access to
programmable reset and interrupt counters with clock-source dependent
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244