From patchwork Fri Aug 12 07:54:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 3402 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 5880623F41 for ; Fri, 12 Aug 2011 07:42:57 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id 2791CA18746 for ; Fri, 12 Aug 2011 07:42:57 +0000 (UTC) Received: by mail-qw0-f52.google.com with SMTP id 8so2136278qwb.11 for ; Fri, 12 Aug 2011 00:42:57 -0700 (PDT) Received: by 10.229.62.150 with SMTP id x22mr403784qch.136.1313134976769; Fri, 12 Aug 2011 00:42:56 -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.229.190.71 with SMTP id dh7cs140474qcb; Fri, 12 Aug 2011 00:42:56 -0700 (PDT) Received: from mr.google.com ([10.150.1.19]) by 10.150.1.19 with SMTP id 19mr2201031yba.37.1313134976447 (num_hops = 1); Fri, 12 Aug 2011 00:42:56 -0700 (PDT) Received: by 10.150.1.19 with SMTP id 19mr1580842yba.37.1313134975506; Fri, 12 Aug 2011 00:42:55 -0700 (PDT) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx.google.com with ESMTPS id x12si5999798wff.3.2011.08.12.00.42.54 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 12 Aug 2011 00:42:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.45 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.210.45; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.45 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by mail-pz0-f45.google.com with SMTP id 33so993892pzk.32 for ; Fri, 12 Aug 2011 00:42:54 -0700 (PDT) Received: by 10.143.62.18 with SMTP id p18mr361520wfk.244.1313134974534; Fri, 12 Aug 2011 00:42:54 -0700 (PDT) Received: from localhost.localdomain ([58.208.99.22]) by mx.google.com with ESMTPS id 14sm1379325wfl.5.2011.08.12.00.42.44 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 12 Aug 2011 00:42:54 -0700 (PDT) From: Shawn Guo To: linux-arm-kernel@lists.infradead.org Cc: Russell King - ARM Linux , Grant Likely , Nicolas Pitre , Sascha Hauer , patches@linaro.org, Shawn Guo Subject: [PATCH 4/6] arm/imx: remove gpio_to_irq() from mach/gpio.h Date: Fri, 12 Aug 2011 15:54:59 +0800 Message-Id: <1313135701-22456-5-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1313135701-22456-1-git-send-email-shawn.guo@linaro.org> References: <1313135701-22456-1-git-send-email-shawn.guo@linaro.org> As all the users of gpio_to_irq() has migrated to IMX_GPIO_TO_IRQ, gpio_to_irq() can be removed from mach/gpio.h now. Signed-off-by: Shawn Guo Cc: Sascha Hauer --- arch/arm/plat-mxc/include/mach/gpio.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-mxc/include/mach/gpio.h b/arch/arm/plat-mxc/include/mach/gpio.h index 3e1ffc8..9a7c750 100644 --- a/arch/arm/plat-mxc/include/mach/gpio.h +++ b/arch/arm/plat-mxc/include/mach/gpio.h @@ -27,7 +27,6 @@ /* range e.g. GPIO_1_5 is gpio 5 under linux */ #define IMX_GPIO_NR(bank, nr) (((bank) - 1) * 32 + (nr)) -#define gpio_to_irq(gpio) (MXC_GPIO_IRQ_START + (gpio)) #define irq_to_gpio(irq) ((irq) - MXC_GPIO_IRQ_START) #endif