diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2014-08-21 17:26:09 +0200 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2014-08-21 17:26:09 +0200 |
commit | 7170f431dce57ed8d17c978f6924291dc7b9944a (patch) | |
tree | 1fa22f00d514a7b65ceb8dac45f7dc757233e724 | |
parent | 3ca7463ba03fcf718fb15d79b27f2cf43e6550c5 (diff) |
rtc: snvs: force enable wake alarm
On Vybrid, the machine/architecture specific code seems not to
enable wakeup for devices, hence force RTC as wakeup source in
the driver.
-rw-r--r-- | drivers/rtc/rtc-snvs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index aa3dedb6b10f..653959b0d2e0 100644 --- a/drivers/rtc/rtc-snvs.c +++ b/drivers/rtc/rtc-snvs.c @@ -593,6 +593,9 @@ static int snvs_rtc_probe(struct platform_device *pdev) } } + /* Added to support sysfs wakealarm attribute */ + pdev->dev.power.can_wakeup = 1; + rtc = rtc_device_register(pdev->name, &pdev->dev, &snvs_rtc_ops, THIS_MODULE); if (IS_ERR(rtc)) { |