diff mbox series

rtc: rtc-cmos: Fix compilation with CONFIG_ACPI unset

Message ID 2677035.mvXUDI8C0e@kreacher
State New
Headers show
Series rtc: rtc-cmos: Fix compilation with CONFIG_ACPI unset | expand

Commit Message

Rafael J. Wysocki Oct. 19, 2022, 4:03 p.m. UTC
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

After commit 0782b66ed2fb ("rtc: rtc-cmos: Fix wake alarm breakage")
the driver won't build with CONFIG_ACPI unset due to a missing stub
definition of rtc_wake_setup(), so fix that.

Fixes: 0782b66ed2fb ("rtc: rtc-cmos: Fix wake alarm breakage")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/rtc/rtc-cmos.c |    4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

Index: linux-pm/drivers/rtc/rtc-cmos.c
===================================================================
--- linux-pm.orig/drivers/rtc/rtc-cmos.c
+++ linux-pm/drivers/rtc/rtc-cmos.c
@@ -1337,6 +1337,10 @@  static void cmos_check_acpi_rtc_status(s
 
 #else
 
+static inline void rtc_wake_setup(struct device *dev)
+{
+}
+
 static void cmos_wake_setup(struct device *dev)
 {
 }