From patchwork Thu Aug 9 15:53:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 10649 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 B319F23E40 for ; Thu, 9 Aug 2012 15:54:16 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 8246DA189A8 for ; Thu, 9 Aug 2012 15:54:16 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so592402yen.11 for ; Thu, 09 Aug 2012 08:54:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=P4jFRsokXtrhjufD/ohS6wa5W9CluIS5Hf/lY+71SoQ=; b=gkVHQiZ71nHzoMnI4uvAVIgGyWe7T8AkNgj62pzGtypcubuL9sDbkKLAN9PhmP850u Xr4QO+3HlwPDaUD9MRnAEANx6+wvb3nrrjlX5WxYUjH/opR62fYf/2UuKmOpH3VHyz5R 83MP+WzneVvuXQz7aXVgHH+Q9+twRLYiP3ogbHLWgrg/Q9e4DVkaZOJt7Nx59eltXxg0 fXS7x47Gfp3k36r04ud14CKaE7iQyy09JFEMbn5ZzVxGvZBvZs1TcHMAT/6i18DYrYCI Bep6RrI7AvdbOnMvTrwklcjmNAUe7GZmeVp5cq/u7fq+avntydPe4gSq7xOk6p+O2Gl5 tqUA== Received: by 10.50.94.133 with SMTP id dc5mr1593322igb.16.1344527656100; Thu, 09 Aug 2012 08:54:16 -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.50.184.200 with SMTP id ew8csp15577igc; Thu, 9 Aug 2012 08:54:15 -0700 (PDT) Received: by 10.180.81.133 with SMTP id a5mr3959533wiy.17.1344527654800; Thu, 09 Aug 2012 08:54:14 -0700 (PDT) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by mx.google.com with ESMTPS id ds8si2954532wib.33.2012.08.09.08.54.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 08:54:14 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.42 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.42; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.42 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wg0-f42.google.com with SMTP id fm10so455028wgb.1 for ; Thu, 09 Aug 2012 08:54:14 -0700 (PDT) Received: by 10.180.78.99 with SMTP id a3mr3959482wix.15.1344527654315; Thu, 09 Aug 2012 08:54:14 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id cl8sm2302659wib.10.2012.08.09.08.54.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 08:54:13 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: STEricsson_nomadik_linux@list.st.com, linus.walleij@stericsson.com, arnd@arndb.de, broonie@opensource.wolfsonmicro.com, Lee Jones , Dmitry Torokhov , linux-input@vger.kernel.org Subject: [PATCH 8/8] input: ab8500-ponkey: Rely on MFD core to convert IRQs to virtual Date: Thu, 9 Aug 2012 16:53:55 +0100 Message-Id: <1344527635-6163-9-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1344527635-6163-1-git-send-email-lee.jones@linaro.org> References: <1344527635-6163-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQk3Kk9AEDO18G5fSsWYIuydc4qO2HuEhE4LrIdK3fiEHwK8h9c8gJdGPBojB77sQcDs2JRl There was a plan to place ab8500_irq_get_virq() calls in each AB8500 child device prior to requesting an IRQ, but as we're no longer using Device Tree to collect our IRQ numbers, it's actually better to allow the core to do this during device registration time. So the IRQ number we pull from its resource has already been converted to a virtual IRQ. CC: Dmitry Torokhov CC: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- drivers/input/misc/ab8500-ponkey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c index f06231b..84ec691 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c @@ -74,8 +74,8 @@ static int __devinit ab8500_ponkey_probe(struct platform_device *pdev) ponkey->idev = input; ponkey->ab8500 = ab8500; - ponkey->irq_dbf = ab8500_irq_get_virq(ab8500, irq_dbf); - ponkey->irq_dbr = ab8500_irq_get_virq(ab8500, irq_dbr); + ponkey->irq_dbf = irq_dbf; + ponkey->irq_dbr = irq_dbr; input->name = "AB8500 POn(PowerOn) Key"; input->dev.parent = &pdev->dev;