summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp4xx
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-09-10 13:39:03 +0200
committerLinus Walleij <linus.walleij@linaro.org>2013-09-27 14:15:39 +0200
commit81ded3c11eeb167c38406247914533872a82db8c (patch)
tree199cb90795756d9ad66c426b7198465cea5b8c69 /arch/arm/mach-ixp4xx
parentstaging: media/lirc: switch to use gpiolib (diff)
downloadlinux-81ded3c11eeb167c38406247914533872a82db8c.tar.xz
linux-81ded3c11eeb167c38406247914533872a82db8c.zip
ARM: ixp4: delete irq_to_gpio
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>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r--arch/arm/mach-ixp4xx/common.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c
index 5327decde5a0..8708ac8f3614 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];