From b06eef45cab7231f59b23d98ce78c090896b6103 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Thu, 21 Feb 2013 16:44:54 -0800 Subject: 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 --- drivers/rtc/rtc-pl031.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v1.1