From patchwork Sun Dec 30 22:07:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: rtc: pl031: add wake-up support Date: Sun, 30 Dec 2012 12:07:48 -0000 From: Rob Herring X-Patchwork-Id: 208794 Message-Id: <1356905268-29587-1-git-send-email-robherring2@gmail.com> To: linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Srinidhi Kasagar , Linus Walleij , Alessandro Zummo , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org From: Rob Herring 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 Cc: linux-arm-kernel@lists.infradead.org Cc: rtc-linux@googlegroups.com Cc: linux-kernel@vger.kernel.org --- 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 08378e3..9e20958 100644 --- a/drivers/rtc/rtc-pl031.c +++ b/drivers/rtc/rtc-pl031.c @@ -380,6 +380,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: