rtc: spacemit: MFD_SPACEMIT_P1 as dependencies
authorTroy Mitchell <troy.mitchell@linux.spacemit.com>
Tue, 18 Nov 2025 06:08:06 +0000 (14:08 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 8 Dec 2025 22:02:10 +0000 (23:02 +0100)
commit16bd954c93360145bc77cc601e350913fc28182d
treefd88ace5ce510b278ca7403057f81f874f464b6a
parent159a740c768e4e8fe3c63d20055bf54de29c0c02
rtc: spacemit: MFD_SPACEMIT_P1 as dependencies

RTC_DRV_SPACEMIT_P1 is a subdevice of P1 and should depend on
MFD_SPACEMIT_P1 rather than selecting it directly. Using 'select'
does not always respect the parent's dependencies, so 'depends on'
is the safer and more correct choice.

Additionally, the default value depends on MFD_SPACEMIT_P1 rather
than ARCH_SPACEMIT.

Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Acked-by: Alex Elder <elder@riscstar.com>
Link: https://patch.msgid.link/20251118-p1-kconfig-fix-v3-2-8839c5ac5db3@linux.spacemit.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/Kconfig