From patchwork Wed Aug 10 12:16:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 3348 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 EAB6C241D9 for ; Wed, 10 Aug 2011 12:17:05 +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 BADD4A187FE for ; Wed, 10 Aug 2011 12:17:05 +0000 (UTC) Received: by qyk31 with SMTP id 31so688434qyk.11 for ; Wed, 10 Aug 2011 05:17:05 -0700 (PDT) Received: by 10.229.44.195 with SMTP id b3mr6393362qcf.7.1312978625223; Wed, 10 Aug 2011 05:17: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 dh7cs78405qcb; Wed, 10 Aug 2011 05:17:05 -0700 (PDT) Received: from mr.google.com ([10.213.16.83]) by 10.213.16.83 with SMTP id n19mr3284504eba.66.1312978624876 (num_hops = 1); Wed, 10 Aug 2011 05:17:04 -0700 (PDT) Received: by 10.213.16.83 with SMTP id n19mr2371651eba.66.1312978624300; Wed, 10 Aug 2011 05:17:04 -0700 (PDT) Received: from eu1sys200aog108.obsmtp.com (eu1sys200aog108.obsmtp.com [207.126.144.125]) by mx.google.com with SMTP id d13si616014eeb.48.2011.08.10.05.17.00 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Aug 2011 05:17:04 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.125 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.125; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.125 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-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob108.postini.com ([207.126.147.11]) with SMTP ID DSNKTkJ2u8Xd1MULiNCEeHjU4vC5BWo1n/Uc@postini.com; Wed, 10 Aug 2011 12:17:04 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0E3D2D4; Wed, 10 Aug 2011 12:16:58 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BB1051DB6; Wed, 10 Aug 2011 12:16:58 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id D933824C075; Wed, 10 Aug 2011 14:16:51 +0200 (CEST) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.83.0; Wed, 10 Aug 2011 14:16:43 +0200 From: Linus Walleij To: Grant Likely , , Cc: Lee Jones , Linus Walleij Subject: [PATCH 03/19] mach-u300: delete irq_to_gpio() function Date: Wed, 10 Aug 2011 14:16:41 +0200 Message-ID: <1312978601-18169-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 U300 build, and on the whole the call is hard to consolidate so get rid of it from this machine. Signed-off-by: Linus Walleij --- arch/arm/mach-u300/include/mach/gpio.h | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-u300/include/mach/gpio.h b/arch/arm/mach-u300/include/mach/gpio.h index 6a3f24d..430a054 100644 --- a/arch/arm/mach-u300/include/mach/gpio.h +++ b/arch/arm/mach-u300/include/mach/gpio.h @@ -44,13 +44,4 @@ static inline unsigned gpio_to_irq(unsigned gpio) } #define gpio_to_irq gpio_to_irq -static inline unsigned irq_to_gpio(unsigned irq) -{ - /* - * FIXME: This is no 1-1 mapping at all, it points to the - * whole block of 8 pins. - */ - return (irq - IRQ_U300_GPIO_PORT0) << 3; -} - #endif /* __MACH_U300_GPIO_H */