ARM: S3C24XX: Remove s3c2410_gpio_getirq()
authorBen Dooks <ben-linux@fluff.org>
Tue, 4 May 2010 08:14:10 +0000 (17:14 +0900)
committerBen Dooks <ben-linux@fluff.org>
Thu, 6 May 2010 00:32:32 +0000 (09:32 +0900)
Remove s3c2410_gpio_getirq() as the only users is the pm code, and it
can be replicated by using gpio_to_irq().

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c24xx/gpio.c
arch/arm/plat-s3c24xx/pm.c

index 9b3d74c186fcaa50c973dca5a823131dc047fcd8..24c00470b86c16af6ef8ac98952fbf68d17e1cb6 100644 (file)
@@ -120,22 +120,3 @@ unsigned int s3c2410_modify_misccr(unsigned int clear, unsigned int change)
 }
 
 EXPORT_SYMBOL(s3c2410_modify_misccr);
-
-int s3c2410_gpio_getirq(unsigned int pin)
-{
-       if (pin < S3C2410_GPF(0) || pin > S3C2410_GPG(15))
-               return -EINVAL; /* not valid interrupts */
-
-       if (pin < S3C2410_GPG(0) && pin > S3C2410_GPF(7))
-               return -EINVAL; /* not valid pin */
-
-       if (pin < S3C2410_GPF(4))
-               return (pin - S3C2410_GPF(0)) + IRQ_EINT0;
-
-       if (pin < S3C2410_GPG(0))
-               return (pin - S3C2410_GPF(4)) + IRQ_EINT4;
-
-       return (pin - S3C2410_GPG(0)) + IRQ_EINT8;
-}
-
-EXPORT_SYMBOL(s3c2410_gpio_getirq);
index 37ea822c5c7b2adf97c20eca8b72b92a85d6b5cb..691fecc61d53e6ebd4810e95a907012cf62b119a 100644 (file)
@@ -91,7 +91,7 @@ static void s3c_pm_check_resume_pin(unsigned int pin, unsigned int irqoffs)
 {
        unsigned long irqstate;
        unsigned long pinstate;
-       int irq = s3c2410_gpio_getirq(pin);
+       int irq = gpio_to_irq(pin);
 
        if (irqoffs < 4)
                irqstate = s3c_irqwake_intmask & (1L<<irqoffs);