From patchwork Wed Nov 23 16:56:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 5300 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 DDF0B23E07 for ; Wed, 23 Nov 2011 16:57:02 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id AD034A1834A for ; Wed, 23 Nov 2011 16:57:02 +0000 (UTC) Received: by ywb5 with SMTP id 5so2125940ywb.11 for ; Wed, 23 Nov 2011 08:57:02 -0800 (PST) Received: by 10.152.111.170 with SMTP id ij10mr12066285lab.5.1322067421596; Wed, 23 Nov 2011 08:57:01 -0800 (PST) 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.41.198 with SMTP id h6cs245582lal; Wed, 23 Nov 2011 08:57:01 -0800 (PST) Received: by 10.180.80.98 with SMTP id q2mr24701903wix.53.1322067419555; Wed, 23 Nov 2011 08:56:59 -0800 (PST) Received: from eu1sys200aog120.obsmtp.com (eu1sys200aog120.obsmtp.com. [207.126.144.149]) by mx.google.com with SMTP id fk15si8788880wbb.82.2011.11.23.08.56.54 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 Nov 2011 08:56:59 -0800 (PST) Received-SPF: neutral (google.com: 207.126.144.149 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.149; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.149 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 eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKTs0l1umTpe+x2EgkcIEkLjyfmws9ME64@postini.com; Wed, 23 Nov 2011 16:56:59 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 54BCB5C; Wed, 23 Nov 2011 16:56:51 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id F33B250; Wed, 23 Nov 2011 16:45:03 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id E869224C075; Wed, 23 Nov 2011 17:56:43 +0100 (CET) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.83.0; Wed, 23 Nov 2011 17:56:51 +0100 From: Linus Walleij To: Andrew Morton Cc: Alessandro Zummo , , Andrew Lynn , Linus Walleij Subject: [RESEND PATCH 2/4] rtc/ab8500: set can_wake flag Date: Wed, 23 Nov 2011 17:56:49 +0100 Message-ID: <1322067409-12502-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)) {