[PATCH 1/2] rtc: m41t93: select REGMAP_SPI
From: Pengpeng Hou
Date: Mon Nov 30 2026 - 08:39:41 EST
rtc-m41t93.c initializes an SPI regmap using devm_regmap_init_spi(),
but RTC_DRV_M41T93 does not select REGMAP_SPI. The driver can
therefore be enabled without the required register-transport
implementation and fail to build.
Select REGMAP_SPI 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: d86e8682593c ("rtc: m41t93: migrate to regmap api for register access")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/rtc/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 73ec923..8f9e59a 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -816,6 +816,7 @@ if SPI_MASTER
config RTC_DRV_M41T93
tristate "ST M41T93"
+ select REGMAP_SPI
help
If you say yes here you will get support for the
ST M41T93 SPI RTC chip.