From: Rob Herring Date: Fri, 22 Feb 2013 00:44:54 +0000 (-0800) Subject: drivers/rtc/rtc-pl031.c: add wakeup support X-Git-Tag: accepted/tizen/common/20141203.182822~2830^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b06eef45cab7231f59b23d98ce78c090896b6103;p=platform%2Fkernel%2Flinux-arm64.git drivers/rtc/rtc-pl031.c: add wakeup support Mark the pl031 as wake-up capable so that rtcwake and suspend test can work. Signed-off-by: Rob Herring Cc: Srinidhi Kasagar Cc: Linus Walleij Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-pl031.c b/drivers/rtc/rtc-pl031.c index 81c5077..8900ea7 100644 --- a/drivers/rtc/rtc-pl031.c +++ b/drivers/rtc/rtc-pl031.c @@ -384,6 +384,8 @@ static int pl031_probe(struct amba_device *adev, const struct amba_id *id) goto out_no_irq; } + device_init_wakeup(&adev->dev, 1); + return 0; out_no_irq: