[PATCH 6/7] ARM: ixp4: delete irq_to_gpio
Krzysztof Halasa
khc at pm.waw.pl
Tue Sep 17 08:41:23 EDT 2013
Linus Walleij <linus.walleij at linaro.org> writes:
> This dangerous function is not used in the kernel, so let's
> just delete it.
Acked-by: Krzysztof Halasa <khc at 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
More information about the linux-arm-kernel
mailing list