diff mbox

[6/7] ARM: ixp4: delete irq_to_gpio

Message ID 1378816295-8205-1-git-send-email-linus.walleij@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Linus Walleij Sept. 10, 2013, 12:31 p.m. UTC
This dangerous function is not used in the kernel, so let's
just delete it.

Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: Krzysztof Halasa <khc@pm.waw.pl>
Cc: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 arch/arm/mach-ixp4xx/common.c | 11 -----------
 1 file changed, 11 deletions(-)

Comments

Krzysztof Halasa Sept. 17, 2013, 12:41 p.m. UTC | #1
Linus Walleij <linus.walleij@linaro.org> 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);
> -
diff mbox

Patch

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];