From patchwork Tue Feb 11 10:18:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Thomson X-Patchwork-Id: 319205 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-oa0-x238.google.com (mail-oa0-x238.google.com [IPv6:2607:f8b0:4003:c02::238]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 908522C00A2 for ; Tue, 11 Feb 2014 21:19:01 +1100 (EST) Received: by mail-oa0-f56.google.com with SMTP id j17sf2185648oag.21 for ; Tue, 11 Feb 2014 02:18:59 -0800 (PST) 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 :content-transfer-encoding; bh=9IxrFmP2c0U3oXfMfqGghlnPtM4Wwe09Q8k+xMh5DEI=; b=jYdUka47rx8vrsqV1sHrrle/xmj8ohsGCpzWh0T5EME3LfzzXqIN4usQmeFLta3x9w 9PuQVNAbXyGM3L1SOYlJjnLv0BIWhgf39n4qU7Bcs8fvQdyfobi5i/5uyVVaqnHWKqX8 dM1a6dY4pwgRCSlzaG612y4ml79yUrdOqNIZFr6UUJ+9uCtsXT4Kg+kieNAGlvfNXBFc VobOcpMIcSwIBIAsB2HyTf/lCzpA3l0EWlGbLd86yk6M6iHzNLOjSlgZmB3pBRh91vEq +r+uasOzVtyv2MKFKpZ/lBpnuAZsiKNPvG375zQGfzHqCZZpvsfmxdy/8He57AYVNGuB uiLQ== X-Received: by 10.140.109.244 with SMTP id l107mr180qgf.28.1392113939109; Tue, 11 Feb 2014 02:18:59 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.140.107.228 with SMTP id h91ls1582609qgf.76.gmail; Tue, 11 Feb 2014 02:18:58 -0800 (PST) X-Received: by 10.236.108.228 with SMTP id q64mr12786794yhg.36.1392113938849; Tue, 11 Feb 2014 02:18:58 -0800 (PST) Received: from mail1.bemta5.messagelabs.com (mail1.bemta5.messagelabs.com. [195.245.231.151]) by gmr-mx.google.com with ESMTPS id rf7si128717pab.2.2014.02.11.02.18.58 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 11 Feb 2014 02:18:58 -0800 (PST) Received-SPF: neutral (google.com: 195.245.231.151 is neither permitted nor denied by best guess record for domain of Adam.Thomson.Opensource@diasemi.com) client-ip=195.245.231.151; Received: from [85.158.139.35:43361] by server-15.bemta-5.messagelabs.com id EF/13-24395-019F9F25; Tue, 11 Feb 2014 10:18:56 +0000 X-Env-Sender: Adam.Thomson.Opensource@diasemi.com X-Msg-Ref: server-15.tower-179.messagelabs.com!1392113936!26637316!1 X-Originating-IP: [82.210.246.133] X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 10910 invoked from network); 11 Feb 2014 10:18:56 -0000 Received: from mailrelay1.diasemi.com (HELO NB-EX-CASHUB01.diasemi.com) (82.210.246.133) by server-15.tower-179.messagelabs.com with AES128-SHA encrypted SMTP; 11 Feb 2014 10:18:56 -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 Feb 2014 11:18:55 +0100 X-Authentication-Warning: swsrvapps-01.diasemi.com: athomson set sender to Adam.Thomson.Opensource@diasemi.com using -f Message-ID: <68b98f4a080bb8be65eb97e63a5fb6c72ca555eb.1392044599.git.Adam.Thomson.Opensource@diasemi.com> In-Reply-To: References: From: Adam Thomson Date: Tue, 11 Feb 2014 10:18:54 +0000 Subject: [rtc-linux] [PATCH 1/2] onkey: da9055: Remove use of regmap_irq_get_virq() To: Dmitry Torokhov , Dmitry Torokhov , Alessandro Zummo CC: , MIME-Version: 1.0 X-Original-Sender: adam.thomson@diasemi.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 195.245.231.151 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 Legal Disclaimer: This e-mail communication (and any attachment/s) is confidential and contains proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Please consider the environment before printing this e-mail 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);