Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Troy Mitchell and committed by
Alexandre Belloni
16bd954c 159a740c

+2 -2
+2 -2
drivers/rtc/Kconfig
··· 409 409 config RTC_DRV_SPACEMIT_P1 410 410 tristate "SpacemiT P1 RTC" 411 411 depends on ARCH_SPACEMIT || COMPILE_TEST 412 - select MFD_SPACEMIT_P1 413 - default ARCH_SPACEMIT 412 + depends on MFD_SPACEMIT_P1 413 + default MFD_SPACEMIT_P1 414 414 help 415 415 Enable support for the RTC function in the SpacemiT P1 PMIC. 416 416 This driver can also be built as a module, which will be called