]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: ixp4: delete irq_to_gpio
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Sep 2013 11:39:03 +0000 (13:39 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 27 Sep 2013 12:15:39 +0000 (14:15 +0200)
This dangerous function is not used in the kernel, so let's
just delete it.

Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ixp4xx/common.c

index 5327decde5a04e58a2d6a7a0be6589d279fbeb49..8708ac8f36147716b3f50c3ec7fb6336dd507aee 100644 (file)
@@ -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];