Commit d174a024 authored by Adam Ward's avatar Adam Ward Committed by Linus Torvalds

drivers/rtc/rtc-da9052.c: register ability of alarm to wake device from suspend

Signed-off-by: default avatarAdam Ward <adam.ward.opensource@diasemi.com>
Tested-by: default avatarAdam Ward <adam.ward.opensource@diasemi.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ae824c48
...@@ -309,6 +309,8 @@ static int da9052_rtc_probe(struct platform_device *pdev) ...@@ -309,6 +309,8 @@ static int da9052_rtc_probe(struct platform_device *pdev)
return ret; return ret;
} }
device_init_wakeup(&pdev->dev, true);
rtc->rtc = devm_rtc_device_register(&pdev->dev, pdev->name, rtc->rtc = devm_rtc_device_register(&pdev->dev, pdev->name,
&da9052_rtc_ops, THIS_MODULE); &da9052_rtc_ops, THIS_MODULE);
return PTR_ERR_OR_ZERO(rtc->rtc); return PTR_ERR_OR_ZERO(rtc->rtc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment