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: 2865891 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A3F34BF43F for ; Tue, 10 Sep 2013 12:58:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 799B920342 for ; Tue, 10 Sep 2013 12:58:45 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 732B6200E6 for ; Tue, 10 Sep 2013 12:58:43 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJNVN-0003fD-Qv; Tue, 10 Sep 2013 12:57:18 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJNV0-0003cA-GC; Tue, 10 Sep 2013 12:56:54 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJNUK-0003FZ-Tq for linux-arm-kernel@merlin.infradead.org; Tue, 10 Sep 2013 12:56:13 +0000 Received: from mail-lb0-f179.google.com ([209.85.217.179]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJN7C-0005jD-Qz for linux-arm-kernel@lists.infradead.org; Tue, 10 Sep 2013 12:32:20 +0000 Received: by mail-lb0-f179.google.com with SMTP id x18so6141932lbi.38 for ; Tue, 10 Sep 2013 05:31:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cIuOaG9oPcvNnk3lEprMLVn3vOUWdgkVZxHzcURq9/o=; b=X318KUuuqXVbAwzXefy7WiiZCSiBLbts8TYkF/6H/Uh0FwRjiWTYPuELZM9RJJjB56 ReGMSW5mwYn+cRlHv1cisHXqGD/4oU/f8HU4GtOXzynUv4dXcxuTaBuqBwIVeo9pA90c kgY34fVbGC/EKfPTQFrQAyHQ6lYbWFaN4G7CzjVMJhdC2cyWhKEJ078/NlA9mEvmbftT ieKVhDNyl1MDvYHwkUdGsd2Cazn8L918zCCBZCCTa4WrSx7SL8qSulHCohazWrnSOSBk vzMsRxp0skUaH4oIKM5FhCQtwm0WmDtSGIg1OTfiBBXgk0RI83i32rk9Bsk4WmcXuc22 HjAg== X-Gm-Message-State: ALoCoQm+g2JLgIe3+QRZUnvbKS1tiPx97NVcOR85Kx9IVfS9pfiTdOtHU10eQkJFYuPJYU+MoPlL 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130910_133218_969743_0558E6AD X-CRM114-Status: GOOD ( 10.48 ) X-Spam-Score: -2.6 (--) Cc: Linus Walleij , Alexandre Courbot , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Krzysztof Halasa --- 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];