From patchwork Wed Aug 10 12:18:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 3364 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 40F9123F46 for ; Wed, 10 Aug 2011 12:19:06 +0000 (UTC) Received: from mail-qy0-f180.google.com (mail-qy0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id 110D1A1838C for ; Wed, 10 Aug 2011 12:19:05 +0000 (UTC) Received: by qyk31 with SMTP id 31so689555qyk.11 for ; Wed, 10 Aug 2011 05:19:05 -0700 (PDT) Received: by 10.229.44.195 with SMTP id b3mr6395112qcf.7.1312978745501; Wed, 10 Aug 2011 05:19:05 -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 dh7cs78539qcb; Wed, 10 Aug 2011 05:19:05 -0700 (PDT) Received: from mr.google.com ([10.213.25.77]) by 10.213.25.77 with SMTP id y13mr156708ebb.129.1312978745188 (num_hops = 1); Wed, 10 Aug 2011 05:19:05 -0700 (PDT) Received: by 10.213.25.77 with SMTP id y13mr121155ebb.129.1312978744621; Wed, 10 Aug 2011 05:19:04 -0700 (PDT) Received: from eu1sys200aog109.obsmtp.com (eu1sys200aog109.obsmtp.com [207.126.144.127]) by mx.google.com with SMTP id s4si597594ees.188.2011.08.10.05.18.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Aug 2011 05:19:04 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.127 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.127; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.127 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob109.postini.com ([207.126.147.11]) with SMTP ID DSNKTkJ3L03UhcwqDiP4K8RZVaHkzXO2oxbz@postini.com; Wed, 10 Aug 2011 12:19:04 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 461B9D1; Wed, 10 Aug 2011 12:18:52 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id BBDF9E13; Wed, 10 Aug 2011 12:18:51 +0000 (GMT) Received: from exdcvycastm022.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm022", Issuer "exdcvycastm022" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id D053DA8083; Wed, 10 Aug 2011 14:18:45 +0200 (CEST) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.30) with Microsoft SMTP Server (TLS) id 8.3.83.0; Wed, 10 Aug 2011 14:18:50 +0200 From: Linus Walleij To: Grant Likely , , Cc: Lee Jones , Linus Walleij , Russell King Subject: [PATCH 19/19] mach-sa1100: delete irq_to_gpio() function Date: Wed, 10 Aug 2011 14:18:48 +0200 Message-ID: <1312978728-18704-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.3.2 MIME-Version: 1.0 From: Linus Walleij This function is not used in the assabet build, and on the whole the call is hard to consolidate so get rid of it from this machine. Cc: Russell King Signed-off-by: Linus Walleij --- arch/arm/mach-sa1100/include/mach/gpio.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-sa1100/include/mach/gpio.h b/arch/arm/mach-sa1100/include/mach/gpio.h index ab45b43..7036318 100644 --- a/arch/arm/mach-sa1100/include/mach/gpio.h +++ b/arch/arm/mach-sa1100/include/mach/gpio.h @@ -53,7 +53,5 @@ static inline void gpio_set_value(unsigned gpio, int value) #define gpio_to_irq(gpio) ((gpio < 11) ? (IRQ_GPIO0 + gpio) : \ (IRQ_GPIO11 - 11 + gpio)) -#define irq_to_gpio(irq) ((irq < IRQ_GPIO11_27) ? (irq - IRQ_GPIO0) : \ - (irq - IRQ_GPIO11 + 11)) #endif