From patchwork Sat Aug 13 16:14:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 3440 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 ECA2F24198 for ; Sat, 13 Aug 2011 16:01:08 +0000 (UTC) Received: from mail-ew0-f52.google.com (mail-ew0-f52.google.com [209.85.215.52]) by fiordland.canonical.com (Postfix) with ESMTP id E2717A18352 for ; Sat, 13 Aug 2011 16:01:08 +0000 (UTC) Received: by mail-ew0-f52.google.com with SMTP id 28so2167074ewy.11 for ; Sat, 13 Aug 2011 09:01:08 -0700 (PDT) Received: by 10.213.3.155 with SMTP id 27mr140566ebn.18.1313251268680; Sat, 13 Aug 2011 09:01:08 -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.213.102.5 with SMTP id e5cs22922ebo; Sat, 13 Aug 2011 09:01:08 -0700 (PDT) Received: from mr.google.com ([10.42.162.73]) by 10.42.162.73 with SMTP id w9mr2711454icx.417.1313251268529 (num_hops = 1); Sat, 13 Aug 2011 09:01:08 -0700 (PDT) Received: by 10.42.162.73 with SMTP id w9mr2266743icx.417.1313251268184; Sat, 13 Aug 2011 09:01:08 -0700 (PDT) Received: from mail-iy0-f170.google.com (mail-iy0-f170.google.com [209.85.210.170]) by mx.google.com with ESMTPS id md8si11039975icb.153.2011.08.13.09.01.07 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Aug 2011 09:01:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.170 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.210.170; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.170 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-iy0-f170.google.com with SMTP id 16so3848137iye.1 for ; Sat, 13 Aug 2011 09:01:07 -0700 (PDT) Received: by 10.42.145.73 with SMTP id e9mr262404icv.238.1313251267525; Sat, 13 Aug 2011 09:01:07 -0700 (PDT) Received: from localhost.localdomain ([114.216.156.140]) by mx.google.com with ESMTPS id bv10sm1351925icb.1.2011.08.13.09.01.00 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Aug 2011 09:01:07 -0700 (PDT) From: Shawn Guo To: linux-arm-kernel@lists.infradead.org Cc: Russell King - ARM Linux , Grant Likely , Sascha Hauer , Nicolas Pitre , patches@linaro.org, Shawn Guo Subject: [PATCH v2 4/8] arm/mxc: remove gpio_to_irq() from mach/gpio.h Date: Sun, 14 Aug 2011 00:14:03 +0800 Message-Id: <1313252047-8820-5-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1313252047-8820-1-git-send-email-shawn.guo@linaro.org> References: <1313252047-8820-1-git-send-email-shawn.guo@linaro.org> As all the users of gpio_to_irq() in static initializers have been migrated to IMX_GPIO_TO_IRQ, gpio_to_irq() can be removed from mach/gpio.h now. Signed-off-by: Shawn Guo --- 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