summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/s3c2410-gpio.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@org.rmk.(none)>2006-10-30 02:27:45 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-11-02 22:58:52 +0000
commit94c52fde553260e86f263448034930abe364faec (patch)
tree8c668d34bc291db9daf73f2b9f2e6209262424f8 /arch/arm/mach-s3c2410/s3c2410-gpio.c
parent73218187e8650c08d4e4735dbeeeb860f438da7c (diff)
downloadblackbird-obmc-linux-94c52fde553260e86f263448034930abe364faec.tar.gz
blackbird-obmc-linux-94c52fde553260e86f263448034930abe364faec.zip
[ARM] 3915/1: S3C2412: Add s3c2410_gpio_getirq() to general gpio.c
s3c2410_gpio_getirq() holds for the S3C2412 build, so ensure that it gets built for all the current S3C24XX architectures Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410/s3c2410-gpio.c')
-rw-r--r--arch/arm/mach-s3c2410/s3c2410-gpio.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/arm/mach-s3c2410/s3c2410-gpio.c b/arch/arm/mach-s3c2410/s3c2410-gpio.c
index a2098f692d83..ec3a276cc3cf 100644
--- a/arch/arm/mach-s3c2410/s3c2410-gpio.c
+++ b/arch/arm/mach-s3c2410/s3c2410-gpio.c
@@ -69,22 +69,3 @@ int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on,
}
EXPORT_SYMBOL(s3c2410_gpio_irqfilter);
-
-int s3c2410_gpio_getirq(unsigned int pin)
-{
- if (pin < S3C2410_GPF0 || pin > S3C2410_GPG15)
- return -1; /* not valid interrupts */
-
- if (pin < S3C2410_GPG0 && pin > S3C2410_GPF7)
- return -1; /* not valid pin */
-
- if (pin < S3C2410_GPF4)
- return (pin - S3C2410_GPF0) + IRQ_EINT0;
-
- if (pin < S3C2410_GPG0)
- return (pin - S3C2410_GPF4) + IRQ_EINT4;
-
- return (pin - S3C2410_GPG0) + IRQ_EINT8;
-}
-
-EXPORT_SYMBOL(s3c2410_gpio_getirq);
OpenPOWER on IntegriCloud