From: Rob Herring Date: Fri, 22 Feb 2013 00:44:54 +0000 (-0800) Subject: drivers/rtc/rtc-pl031.c: add wakeup support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b06eef45cab7231f59b23d98ce78c090896b6103;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 81c5077feff3..8900ea784817 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: