[PATCH] rtc: rtc-cmos: Fix compilation with CONFIG_ACPI unset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

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@xxxxxxxxx>
---
 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)
 {
 }






[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux