From patchwork Tue Sep 10 12:31:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 19854 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 67EA6246A4 for ; Tue, 10 Sep 2013 12:31:45 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id x20sf8911443qcv.3 for ; Tue, 10 Sep 2013 05:31:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=cIuOaG9oPcvNnk3lEprMLVn3vOUWdgkVZxHzcURq9/o=; b=OckRAXVp28fCzD2KXQd0Cr9DaN/XmvCBved8oBlAHUI9ajpYlPdYBO0fnWBEcSPKT3 /ReWqaWt7TWC40zXJcnGVCh1JGRjzhXr8lH01wAaeo3xgYxeMAWFAj381JIFTfYvRYJh EkB//hnW/XawSk1c3vsQyKl8pb9Y6Dl/TD8+99waAF5IUP3pPHNbm309fXj/Pg1cqc75 BGKRn+QZ4lXsEpGqSzyoq77KR/M2d/eP7SwktrosSKhljvOIwc46U1t3pa+oUXH36HWP hNSSEuKYDTsKHUS1qQIm6BTZMU9Wz6EyRaLsodce0CcdLtoRuFDQUZMbGv2udFCOLfPf VBXQ== X-Received: by 10.236.176.1 with SMTP id a1mr2797363yhm.10.1378816305230; Tue, 10 Sep 2013 05:31:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.83 with SMTP id s19ls2140275qeu.7.gmail; Tue, 10 Sep 2013 05:31:45 -0700 (PDT) X-Received: by 10.221.47.193 with SMTP id ut1mr22690230vcb.8.1378816305020; Tue, 10 Sep 2013 05:31:45 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id tj1si4371381vdc.79.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:31:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id hf12so5116925vcb.27 for ; Tue, 10 Sep 2013 05:31:44 -0700 (PDT) X-Gm-Message-State: ALoCoQlev4V4S88IOh8u7WrcA46Wr9GpSNO02l8XSjPywNHKlF6Ws9ggp0t+o5hUguXIXg77m//L X-Received: by 10.58.197.5 with SMTP id iq5mr348326vec.30.1378816304913; Tue, 10 Sep 2013 05:31:44 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp18462vcz; Tue, 10 Sep 2013 05:31:44 -0700 (PDT) X-Received: by 10.152.9.37 with SMTP id w5mr11377639laa.23.1378816303721; Tue, 10 Sep 2013 05:31:43 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by mx.google.com with ESMTPS id nw5si7979230lbb.71.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:31:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.41 is neither permitted nor denied by best guess record for domain of linus.walleij@linaro.org) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id ec20so6222530lab.0 for ; Tue, 10 Sep 2013 05:31:43 -0700 (PDT) X-Received: by 10.112.172.137 with SMTP id bc9mr20911045lbc.21.1378816302638; Tue, 10 Sep 2013 05:31:42 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id rd5sm8464233lbb.16.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 10 Sep 2013 05:31:41 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org, Imre Kaloz , Krzysztof Halasa Cc: Alexandre Courbot , linux-arm-kernel@lists.infradead.org, Linus Walleij Subject: [PATCH 6/7] ARM: ixp4: delete irq_to_gpio Date: Tue, 10 Sep 2013 14:31:35 +0200 Message-Id: <1378816295-8205-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.8.3.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This dangerous function is not used in the kernel, so let's just delete it. Cc: Imre Kaloz Cc: Krzysztof Halasa Cc: Alexandre Courbot Signed-off-by: Linus Walleij --- arch/arm/mach-ixp4xx/common.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c index 5327dec..8708ac8 100644 --- a/arch/arm/mach-ixp4xx/common.c +++ b/arch/arm/mach-ixp4xx/common.c @@ -117,17 +117,6 @@ static int ixp4xx_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) return -EINVAL; } -int irq_to_gpio(unsigned int irq) -{ - int gpio = (irq < 32) ? irq2gpio[irq] : -EINVAL; - - if (gpio == -1) - return -EINVAL; - - return gpio; -} -EXPORT_SYMBOL(irq_to_gpio); - static int ixp4xx_set_irq_type(struct irq_data *d, unsigned int type) { int line = irq2gpio[d->irq];