diff options
author | Ben Dooks <ben@simtec.co.uk> | 2009-05-13 17:20:35 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-05-17 17:21:11 -0400 |
commit | ec7f4d5d67ef63c724ab6d4bdc7d2ffa8861071a (patch) | |
tree | fb73dc673abb251c26565d98ec567db0e0bd1167 /arch | |
parent | 496a3f0927197ca155a604478bf6e7db3eca3bbd (diff) |
[ARM] S3C24XX: GPIO: Remove s3c2410_gpio_irq2pin() call
Remove the s3c2410_gpio_irq2pin() function as it is not being
used in any in kernel driver and the function is probably not
being used anywhere else.
This is also part of the effort to remove any of the s3c24xx gpio
specific code that cannot be recreated by using the gpiolib
framework now in the kernel.
Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c2410/include/mach/hardware.h | 11 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/gpio.c | 16 |
2 files changed, 0 insertions, 27 deletions
diff --git a/arch/arm/mach-s3c2410/include/mach/hardware.h b/arch/arm/mach-s3c2410/include/mach/hardware.h index 74d5a1a4024c..d7745d85392e 100644 --- a/arch/arm/mach-s3c2410/include/mach/hardware.h +++ b/arch/arm/mach-s3c2410/include/mach/hardware.h | |||
@@ -46,17 +46,6 @@ extern unsigned int s3c2410_gpio_getcfg(unsigned int pin); | |||
46 | 46 | ||
47 | extern int s3c2410_gpio_getirq(unsigned int pin); | 47 | extern int s3c2410_gpio_getirq(unsigned int pin); |
48 | 48 | ||
49 | /* s3c2410_gpio_irq2pin | ||
50 | * | ||
51 | * turn the given irq number into the corresponding GPIO number | ||
52 | * | ||
53 | * returns: | ||
54 | * < 0 = no pin | ||
55 | * >=0 = gpio pin number | ||
56 | */ | ||
57 | |||
58 | extern int s3c2410_gpio_irq2pin(unsigned int irq); | ||
59 | |||
60 | #ifdef CONFIG_CPU_S3C2400 | 49 | #ifdef CONFIG_CPU_S3C2400 |
61 | 50 | ||
62 | extern int s3c2400_gpio_getirq(unsigned int pin); | 51 | extern int s3c2400_gpio_getirq(unsigned int pin); |
diff --git a/arch/arm/plat-s3c24xx/gpio.c b/arch/arm/plat-s3c24xx/gpio.c index 4a899c279eb5..65ebbaff7d50 100644 --- a/arch/arm/plat-s3c24xx/gpio.c +++ b/arch/arm/plat-s3c24xx/gpio.c | |||
@@ -199,19 +199,3 @@ int s3c2410_gpio_getirq(unsigned int pin) | |||
199 | } | 199 | } |
200 | 200 | ||
201 | EXPORT_SYMBOL(s3c2410_gpio_getirq); | 201 | EXPORT_SYMBOL(s3c2410_gpio_getirq); |
202 | |||
203 | int s3c2410_gpio_irq2pin(unsigned int irq) | ||
204 | { | ||
205 | if (irq >= IRQ_EINT0 && irq <= IRQ_EINT3) | ||
206 | return S3C2410_GPF0 + (irq - IRQ_EINT0); | ||
207 | |||
208 | if (irq >= IRQ_EINT4 && irq <= IRQ_EINT7) | ||
209 | return S3C2410_GPF4 + (irq - IRQ_EINT4); | ||
210 | |||
211 | if (irq >= IRQ_EINT8 && irq <= IRQ_EINT23) | ||
212 | return S3C2410_GPG0 + (irq - IRQ_EINT8); | ||
213 | |||
214 | return -EINVAL; | ||
215 | } | ||
216 | |||
217 | EXPORT_SYMBOL(s3c2410_gpio_irq2pin); | ||