From patchwork Tue Mar 11 11:56:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Thomson X-Patchwork-Id: 329050 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ea0-x237.google.com (mail-ea0-x237.google.com [IPv6:2a00:1450:4013:c01::237]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A035F2C00AB for ; Tue, 11 Mar 2014 22:57:03 +1100 (EST) Received: by mail-ea0-f183.google.com with SMTP id l9sf629250eaj.20 for ; Tue, 11 Mar 2014 04:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=message-id:in-reply-to:references:from:date:subject:to:cc :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=bqNjTI3W3Qtmyn4+5+4VgKPitpykrqyi1z8eFWXhmEw=; b=zBkIPAySAzR7HgoSMraJJ5+z/AoPe2NHTiJy1wtxmk3PfWcSCY/cWHrLW8rzC2pR1w mBOP4mGj05nhqwv7iap2AYplOHI9JSf9gs5Kx1qysrYlf4hqXI/de23uz4GH6kfEVHGY plySzM6p1fIQ1f4wWjGkvkKcAR+AIY8t/K86ifo/i0PULZHNQ+JFVKx03EkZhQK9uTFV hHPHMC6kgYnq9BTOAZd63LcEp4bBFFRaDPBcUL4966vdwVhGenJKQDepoKNtiHvw7XZJ zYsONp/EoDqjIpDERIbLqaGPFplT8cY5rZAHuB+tdF3zVGx/zIBXAKIE37cwBib4iwgH ZDVQ== X-Received: by 10.153.7.134 with SMTP id dc6mr9799lad.29.1394539019434; Tue, 11 Mar 2014 04:56:59 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.152.234.172 with SMTP id uf12ls434165lac.85.gmail; Tue, 11 Mar 2014 04:56:59 -0700 (PDT) X-Received: by 10.152.22.129 with SMTP id d1mr20578862laf.6.1394539019083; Tue, 11 Mar 2014 04:56:59 -0700 (PDT) Received: from mail1.bemta5.messagelabs.com (mail1.bemta5.messagelabs.com. [195.245.231.147]) by gmr-mx.google.com with ESMTPS id li13si126171wic.1.2014.03.11.04.56.58 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 11 Mar 2014 04:56:59 -0700 (PDT) Received-SPF: neutral (google.com: 195.245.231.147 is neither permitted nor denied by best guess record for domain of Adam.Thomson.Opensource@diasemi.com) client-ip=195.245.231.147; Received: from [85.158.139.19:37132] by server-11.bemta-5.messagelabs.com id 06/7B-30804-A0AFE135; Tue, 11 Mar 2014 11:56:58 +0000 X-Env-Sender: Adam.Thomson.Opensource@diasemi.com X-Msg-Ref: server-13.tower-178.messagelabs.com!1394539009!31081465!1 X-Originating-IP: [82.210.246.133] X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 19995 invoked from network); 11 Mar 2014 11:56:49 -0000 Received: from mailrelay1.diasemi.com (HELO NB-EX-CASHUB01.diasemi.com) (82.210.246.133) by server-13.tower-178.messagelabs.com with AES128-SHA encrypted SMTP; 11 Mar 2014 11:56:49 -0000 Received: from mailrelay1.diasemi.com (10.1.17.243) by NB-EX-CASHUB01.diasemi.com (10.1.16.140) with Microsoft SMTP Server id 14.2.309.2; Tue, 11 Mar 2014 12:56:48 +0100 Received: from swsrvapps-01.diasemi.com (Not Verified[10.20.28.141]) by mailrelay1.diasemi.com with ESMTP Gateway id ; Tue, 11 Mar 2014 12:56:48 +0100 Received: (from athomson@localhost) by swsrvapps-01.diasemi.com (8.14.3/8.14.3/Submit/Dlg) id s2BBulrL000859; Tue, 11 Mar 2014 11:56:47 GMT X-Authentication-Warning: swsrvapps-01.diasemi.com: athomson set sender to Adam.Thomson.Opensource@diasemi.com using -f Message-ID: <6038e89a5f611a7b866f028f77c3df37015931db.1394536652.git.Adam.Thomson.Opensource@diasemi.com> In-Reply-To: References: From: Adam Thomson Date: Tue, 11 Mar 2014 11:56:47 +0000 Subject: [rtc-linux] [PATCH Resend 1/2] input: da9055_onkey: Remove use of regmap_irq_get_virq() To: Dmitry Torokhov , Dmitry Torokhov , Alessandro Zummo CC: , MIME-Version: 1.0 X-Original-Sender: adam.thomson.opensource@diasemi.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 195.245.231.147 is neither permitted nor denied by best guess record for domain of Adam.Thomson.Opensource@diasemi.com) smtp.mail=Adam.Thomson.Opensource@diasemi.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: , Using platform_get_irq_byname() to retrieve the IRQ number returns the VIRQ number rather than the local IRQ number for the device. Passing that value then into regmap_irq_get_virq() causes a failure because the function is expecting the local IRQ number (e.g. 0, 1, 2, 3, etc). This patch removes use of regmap_irq_get_virq() to prevent this failure from happening. Signed-off-by: Adam Thomson --- drivers/input/misc/da9055_onkey.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) -- 1.7.0.4 diff --git a/drivers/input/misc/da9055_onkey.c b/drivers/input/misc/da9055_onkey.c index 4b11ede..4765799 100644 --- a/drivers/input/misc/da9055_onkey.c +++ b/drivers/input/misc/da9055_onkey.c @@ -109,7 +109,6 @@ static int da9055_onkey_probe(struct platform_device *pdev) INIT_DELAYED_WORK(&onkey->work, da9055_onkey_work); - irq = regmap_irq_get_virq(da9055->irq_data, irq); err = request_threaded_irq(irq, NULL, da9055_onkey_irq, IRQF_TRIGGER_HIGH | IRQF_ONESHOT, "ONKEY", onkey);