Skip to contentSkip to conversation

ARM: ixp4: delete irq_to_gpio

PATCH In review Linus Walleij 2 participants 2 messages Sep 10, 2013 – Sep 17, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 6/7 ARM: ixp4: delete irq_to_gpio

This dangerous function is not used in the kernel, so let's just delete it.

Cc Imre Kaloz <[email protected]>
Cc Krzysztof Halasa <[email protected]>
Cc Alexandre Courbot <[email protected]>
---
 arch/arm/mach-ixp4xx/common.c | 11 -----------
 1 file changed, 11 deletions(-)
arch/arm/mach-ixp4xx/common.c +0 -11
index 5327dec..8708ac8 100644
@@ -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];
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 6/7 ARM: ixp4: delete irq_to_gpio

Quoted 2 lines · Linus Walleij

This dangerous function is not used in the kernel, so let's just delete it.

Quoted 16 lines

+++ b/arch/arm/mach-ixp4xx/common.c

arch/arm/mach-ixp4xx/common.c +0 -11
@@ -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);
-
Signature · 1 line
Krzysztof Halasa