]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rtc: pic32: allow driver to be compiled with COMPILE_TEST
authorBrian Masney <bmasney@redhat.com>
Sun, 22 Feb 2026 23:30:51 +0000 (18:30 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 12 Apr 2026 20:53:18 +0000 (22:53 +0200)
This driver currently only supports builds against a PIC32 target. Now
that commit ed65ae9f6c6b ("rtc: pic32: update include to use pic32.h
from platform_data") is merged, it's possible to compile this driver on
other architectures.

To avoid future breakage of this driver in the future, let's update the
Kconfig so that it can be built with COMPILE_TEST enabled on all
architectures.

Signed-off-by: Brian Masney <bmasney@redhat.com>
Link: https://patch.msgid.link/20260222-rtc-pic32-v1-1-3f8eb654a34d@redhat.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/Kconfig

index b46ac73a2124e62f9232e9667da91fcb7ce36a62..364afc73f8abd2ade7e7570ba59c0f1aa0bbe78e 100644 (file)
@@ -1986,7 +1986,7 @@ config RTC_DRV_XGENE
 
 config RTC_DRV_PIC32
        tristate "Microchip PIC32 RTC"
-       depends on MACH_PIC32
+       depends on MACH_PIC32 || COMPILE_TEST
        default y
        help
           If you say yes here you get support for the PIC32 RTC module.