rtc/ab8500: set can_wake flag
authorAndrew Lynn <[email protected]>
Tue, 10 Jan 2012 23:10:38 +0000 (15:10 -0800)
committerLinus Torvalds <[email protected]>
Wed, 11 Jan 2012 00:30:52 +0000 (16:30 -0800)
Set can_wake flag so wakealarm property is visible in sysfs.

Signed-off-by: Andrew Lynn <[email protected]>
Reviewed-by: Jonas ABERG <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-ab8500.c

index d6bfc4f3658e432fce1144b67088c0544a595941..82a348095a715db522a024d9e0dc593e06783951 100644 (file)
@@ -308,6 +308,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)) {