From patchwork Tue Mar 19 11:49:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashish Jangam X-Patchwork-Id: 229016 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-qc0-x237.google.com (mail-qc0-x237.google.com [IPv6:2607:f8b0:400d:c01::237]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id CCAE92C00AE for ; Tue, 19 Mar 2013 22:52:01 +1100 (EST) Received: by mail-qc0-f183.google.com with SMTP id i13sf181283qcs.10 for ; Tue, 19 Mar 2013 04:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:received-spf :x-forefront-antispam-report:x-spamscore:x-bigfish:subject:from:to :cc:date:message-id:mime-version:x-mailer:x-originating-ip :x-originatororg:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=GD5TDXgYZC7deNHpWHggA+AW98A1YMDTwR0qIrDMJN8=; b=sFVmGowtY5EhTdC+zdOS9RbwLNqUTUWgNy+8JjQdRUtXpdSR8YTolB9uK3O9LTHYOd iB+SNlsJuONAPWUxRhwmQWyCULqJWggRYP/ASJsHsAFaO8AP3+w8hBL44CHaqooDnN6/ vNVsaaARE+c8QRMCKJZwDioi5Df9JSTYJwCAdpksq1Ms+LSO/7329ErXhmu/fIOKFABa Vi8o29P7dWt/CuzlHkqakhwyDEiKu8KtzgRItx7/BK8sYG5b/lYETKhUq+fPMNS0oalz eBDZi3FXwqJAoN5oWO0rSuI+K8gyYE5ROQ7+Q6c4CFR1tgy91nahxfWmCIUReiknYaKD SM2w== X-Received: by 10.50.236.40 with SMTP id ur8mr143970igc.6.1363693918949; Tue, 19 Mar 2013 04:51:58 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.67.36 with SMTP id k4ls113498igt.7.canary; Tue, 19 Mar 2013 04:51:58 -0700 (PDT) X-Received: by 10.66.243.72 with SMTP id ww8mr405664pac.30.1363693918111; Tue, 19 Mar 2013 04:51:58 -0700 (PDT) Received: from db8outboundpool.messaging.microsoft.com (mail-db8lp0186.outbound.messaging.microsoft.com. [213.199.154.186]) by gmr-mx.google.com with ESMTPS id cu1si3975257pbc.1.2013.03.19.04.51.57 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 19 Mar 2013 04:51:58 -0700 (PDT) Received-SPF: neutral (google.com: 213.199.154.186 is neither permitted nor denied by best guess record for domain of Ashish.Jangam@kpitcummins.com) client-ip=213.199.154.186; Received: from mail62-db8-R.bigfish.com (10.174.8.239) by DB8EHSOBE011.bigfish.com (10.174.4.74) with Microsoft SMTP Server id 14.1.225.23; Tue, 19 Mar 2013 11:51:56 +0000 Received: from mail62-db8 (localhost [127.0.0.1]) by mail62-db8-R.bigfish.com (Postfix) with ESMTP id 41B11B400A5; Tue, 19 Mar 2013 11:51:56 +0000 (UTC) X-Forefront-Antispam-Report: CIP:59.163.77.45; KIP:(null); UIP:(null); IPV:NLI; H:KCHJEXHC01.kpit.com; RD:59.163.77.45.static.vsnl.net.in; EFVD:NLI X-SpamScore: 1 X-BigFish: VPS1(zzzz1f42h1ee6h1de0h1202h1e76h1d1ah1d2ahzz8275bhz2dh2a8h668h839h93fhd24hd2bhf0ah1288h12a5h12a9h12bdh137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1b0ahbe9i1155h) Received: from mail62-db8 (localhost.localdomain [127.0.0.1]) by mail62-db8 (MessageSwitch) id 1363693914400679_18488; Tue, 19 Mar 2013 11:51:54 +0000 (UTC) Received: from DB8EHSMHS002.bigfish.com (unknown [10.174.8.254]) by mail62-db8.bigfish.com (Postfix) with ESMTP id 5DE792C004D; Tue, 19 Mar 2013 11:51:54 +0000 (UTC) Received: from KCHJEXHC01.kpit.com (59.163.77.45) by DB8EHSMHS002.bigfish.com (10.174.4.12) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 19 Mar 2013 11:51:53 +0000 Received: from [10.10.38.47] (10.10.38.47) by Outgoing.kpitcummins.com (172.10.15.73) with Microsoft SMTP Server id 14.3.123.3; Tue, 19 Mar 2013 17:21:51 +0530 Subject: [rtc-linux] [Patch v2] rtc: fix for the DA9052 rtc device registration From: Ashish Jangam To: Andrew Morton CC: , , , , Alessandro Zummo , , Date: Tue, 19 Mar 2013 17:19:18 +0530 Message-ID: <1363693758.6897.12.camel@dhruva> MIME-Version: 1.0 X-Mailer: Evolution 2.28.3 X-Originating-IP: [10.10.38.47] X-OriginatorOrg: kpitcummins.com X-Original-Sender: ashish.jangam@kpitcummins.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 213.199.154.186 is neither permitted nor denied by best guess record for domain of Ashish.Jangam@kpitcummins.com) smtp.mail=Ashish.Jangam@kpitcummins.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , This patch adds support for the virtual irq since now MFD only handles virtual irq Without this patch rtc device will fail in registration Signed-off-by: Ashish --- Changes since version v2: - ported the patch for 3.9-rc3 kernel version --- drivers/rtc/rtc-da9052.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-da9052.c b/drivers/rtc/rtc-da9052.c index 0dde688..969abba 100644 --- a/drivers/rtc/rtc-da9052.c +++ b/drivers/rtc/rtc-da9052.c @@ -239,11 +239,9 @@ static int da9052_rtc_probe(struct platform_device *pdev) rtc->da9052 = dev_get_drvdata(pdev->dev.parent); platform_set_drvdata(pdev, rtc); - rtc->irq = platform_get_irq_byname(pdev, "ALM"); - ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL, - da9052_rtc_irq, - IRQF_TRIGGER_LOW | IRQF_ONESHOT, - "ALM", rtc); + rtc->irq = DA9052_IRQ_ALARM; + ret = da9052_request_irq(rtc->da9052, rtc->irq, "ALM", + da9052_rtc_irq, rtc); if (ret != 0) { rtc_err(rtc->da9052, "irq registration failed: %d\n", ret); return ret;