From patchwork Fri Jul 8 22:52:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 957652 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p68MrDST002285 for ; Fri, 8 Jul 2011 22:53:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752457Ab1GHWxL (ORCPT ); Fri, 8 Jul 2011 18:53:11 -0400 Received: from na3sys009aog126.obsmtp.com ([74.125.149.155]:59860 "EHLO na3sys009aog126.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752429Ab1GHWxK (ORCPT ); Fri, 8 Jul 2011 18:53:10 -0400 Received: from mail-bw0-f51.google.com ([209.85.214.51]) (using TLSv1) by na3sys009aob126.postini.com ([74.125.148.12]) with SMTP ID DSNKTheKVWcHzc20ga1fSryHdKEOvFo+QDu4@postini.com; Fri, 08 Jul 2011 15:53:10 PDT Received: by mail-bw0-f51.google.com with SMTP id 18so2604754bwa.10 for ; Fri, 08 Jul 2011 15:53:09 -0700 (PDT) Received: by 10.204.49.4 with SMTP id t4mr612064bkf.304.1310165589205; Fri, 08 Jul 2011 15:53:09 -0700 (PDT) Received: from localhost (cs181221225.pp.htv.fi [82.181.221.225]) by mx.google.com with ESMTPS id ld17sm383568bkb.54.2011.07.08.15.53.07 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jul 2011 15:53:08 -0700 (PDT) From: Felipe Balbi To: Tony Lindgren Cc: Linux OMAP Mailing List , Felipe Balbi Subject: [PATCH 08/11] cbus: tahvo: pass tahvo to IRQ handler Date: Sat, 9 Jul 2011 01:52:36 +0300 Message-Id: <1310165559-31037-9-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.6 In-Reply-To: <1310165559-31037-1-git-send-email-balbi@ti.com> References: <1310165559-31037-1-git-send-email-balbi@ti.com> Organization: Texas Instruments\n Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 08 Jul 2011 22:53:13 +0000 (UTC) that way we don't need to access the global pointer Signed-off-by: Felipe Balbi --- drivers/cbus/tahvo.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cbus/tahvo.c b/drivers/cbus/tahvo.c index 3a77d12..740bb05 100644 --- a/drivers/cbus/tahvo.c +++ b/drivers/cbus/tahvo.c @@ -182,11 +182,11 @@ void tahvo_set_backlight_level(int level) } EXPORT_SYMBOL(tahvo_set_backlight_level); -static irqreturn_t tahvo_irq_handler(int irq, void *dev_id) +static irqreturn_t tahvo_irq_handler(int irq, void *_tahvo) { struct tahvo_irq_handler_desc *hnd; - struct tahvo *tahvo = the_tahvo; + struct tahvo *tahvo = _tahvo; u16 id; u16 im; int i; @@ -329,7 +329,7 @@ static int __devinit tahvo_probe(struct platform_device *pdev) ret = request_threaded_irq(irq, NULL, tahvo_irq_handler, IRQF_TRIGGER_RISING | IRQF_ONESHOT, - "tahvo", 0); + "tahvo", tahvo); if (ret < 0) { dev_err(&pdev->dev, "Unable to register IRQ handler\n"); goto err1;