From patchwork Thu Sep 29 13:47:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 4435 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8A0E723F57 for ; Thu, 29 Sep 2011 13:47:19 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 758C0A18050 for ; Thu, 29 Sep 2011 13:47:19 +0000 (UTC) Received: by fxe23 with SMTP id 23so2536852fxe.11 for ; Thu, 29 Sep 2011 06:47:19 -0700 (PDT) Received: by 10.223.5.76 with SMTP id 12mr16289855fau.103.1317304039224; Thu, 29 Sep 2011 06:47:19 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.3.234 with SMTP id f10cs15279laf; Thu, 29 Sep 2011 06:47:18 -0700 (PDT) Received: by 10.213.2.147 with SMTP id 19mr3887035ebj.6.1317304038385; Thu, 29 Sep 2011 06:47:18 -0700 (PDT) Received: from eu1sys200aog108.obsmtp.com (eu1sys200aog108.obsmtp.com. [207.126.144.125]) by mx.google.com with SMTP id v12si433345eej.24.2011.09.29.06.47.16 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Sep 2011 06:47:18 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.125 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.125; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.125 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob108.postini.com ([207.126.147.11]) with SMTP ID DSNKToR2455WpJggjgKFb+fxkWGSmr9DMZ8q@postini.com; Thu, 29 Sep 2011 13:47:18 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.16.71]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 511BD9E; Thu, 29 Sep 2011 13:47:12 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id E0C1855; Thu, 29 Sep 2011 13:47:11 +0000 (GMT) Received: from exdcvycastm004.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm004", Issuer "exdcvycastm004" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 3938A24C2F0; Thu, 29 Sep 2011 15:47:04 +0200 (CEST) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.2) with Microsoft SMTP Server (TLS) id 8.3.83.0; Thu, 29 Sep 2011 15:47:10 +0200 From: Linus Walleij To: Alessandro Zummo , Cc: Lee Jones , Andrew Lynn , Linus Walleij Subject: [PATCH 2/3] rtc/ab8500: set can_wake flag Date: Thu, 29 Sep 2011 15:47:09 +0200 Message-ID: <1317304029-29039-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.3.2 MIME-Version: 1.0 From: Andrew Lynn Set can_wake flag so wakealarm property is visible in sysfs. Signed-off-by: Andrew Lynn Reviewed-by: Jonas ABERG Signed-off-by: Linus Walleij --- drivers/rtc/rtc-ab8500.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c index d6bfc4f..82a3480 100644 --- a/drivers/rtc/rtc-ab8500.c +++ b/drivers/rtc/rtc-ab8500.c @@ -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)) {