[PATCH 6/7] ARM: ixp4: delete irq_to_gpio
From: khc@pm.waw.pl (Krzysztof Halasa)
Date: 2013-09-17 12:41:26
Also in:
linux-gpio
From: khc@pm.waw.pl (Krzysztof Halasa)
Date: 2013-09-17 12:41:26
Also in:
linux-gpio
Linus Walleij [off-list ref] writes:
This dangerous function is not used in the kernel, so let's just delete it.
Acked-by: Krzysztof Halasa <khc@pm.waw.pl>
+++ 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); -
-- Krzysztof Halasa