From: Rafael J. Wysocki <[email protected]>
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 <[email protected]>
---
drivers/rtc/rtc-cmos.c | 4 ++++
1 file changed, 4 insertions(+)
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)
{
}