Files
linux/drivers/rtc
Rafael J. Wysocki 2a78e42104 ACPI: x86/rtc-cmos: Use platform device for driver binding
Modify the rtc-cmos driver to bind to a platform device on systems with
ACPI via acpi_match_table and advertise the CMOST RTC ACPI device IDs
for driver auto-loading.  Note that adding the requisite device IDs to
it and exposing them via MODULE_DEVICE_TABLE() is sufficient for this
purpose.

Since the ACPI device IDs in question are the same as for the CMOS RTC
ACPI scan handler, put them into a common header file and use the
definition from there in both places.

Additionally, to prevent a PNP device from being created for the CMOS
RTC if a platform one is present already, make is_cmos_rtc_device()
check cmos_rtc_platform_device_present introduced previously.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://patch.msgid.link/13969123.uLZWGnKmhe@rafael.j.wysocki
2026-02-26 18:47:52 +01:00
..
2022-06-24 21:24:02 +02:00
2021-04-29 23:03:26 +02:00
2024-08-28 21:54:51 +01:00
2025-12-08 22:31:12 +01:00
2025-06-02 00:25:32 +02:00
2024-05-07 23:40:10 +02:00
2025-09-16 17:38:20 +02:00
2025-09-16 17:38:20 +02:00
2025-10-05 22:51:06 +02:00
2025-11-03 14:38:38 +01:00
2025-07-22 13:06:19 +02:00