From 11600d7be504ba109b6db8f32ecdbafef61b1d1d Mon Sep 17 00:00:00 2001 From: Andrew Lynn Date: Tue, 5 Jul 2011 15:39:08 +0100 Subject: u8500: rtc: Set can_wake flag Set can_wake flag so wakealarm property is visible in sysfs. ST-Ericsson ID: 338529 ST-Ericsson Linux next: Not tested ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ief6dfc50bce6334cd2de95a20833dea7c8ed4eba Signed-off-by: Andrew Lynn Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/26588 Reviewed-by: QATEST Reviewed-by: Jonas ABERG --- drivers/rtc/rtc-ab8500.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/rtc') diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c index 89e282292d3..8e017f2cf79 100644 --- a/drivers/rtc/rtc-ab8500.c +++ b/drivers/rtc/rtc-ab8500.c @@ -319,6 +319,8 @@ static int __devinit ab8500_rtc_probe(struct platform_device *pdev) return -ENODEV; } + device_init_wakeup(&pdev->dev, true); + rtc = rtc_device_register("ab8500-rtc", &pdev->dev, &ab8500_rtc_ops, THIS_MODULE); if (IS_ERR(rtc)) { -- cgit v1.2.3