aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp4xx
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-07-26 11:29:42 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-08-12 08:54:05 +0100
commit01e7dc89d060413fd639635618de506093730964 (patch)
tree4fd1f5563c3446155e18fe76d4789ca6fe17b791 /arch/arm/mach-ixp4xx
parent22fe67837614469f8e86c97e9e43d46270701b33 (diff)
downloadkernel_samsung_smdk4412-01e7dc89d060413fd639635618de506093730964.zip
kernel_samsung_smdk4412-01e7dc89d060413fd639635618de506093730964.tar.gz
kernel_samsung_smdk4412-01e7dc89d060413fd639635618de506093730964.tar.bz2
ARM: gpio: consolidate gpio_to_irq
Many of the gpio_to_irq implementations use the gpiolib version of this function. Provide the standard gpiolib gpio_to_irq() for everyone, but allow platforms to override it if they wish. Add the neccessary overrides for those platforms which do not use the standard definition. Acked-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r--arch/arm/mach-ixp4xx/include/mach/gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-ixp4xx/include/mach/gpio.h b/arch/arm/mach-ixp4xx/include/mach/gpio.h
index a5f87de..19009bf 100644
--- a/arch/arm/mach-ixp4xx/include/mach/gpio.h
+++ b/arch/arm/mach-ixp4xx/include/mach/gpio.h
@@ -70,6 +70,7 @@ static inline void gpio_set_value(unsigned gpio, int value)
#include <asm-generic/gpio.h> /* cansleep wrappers */
extern int gpio_to_irq(int gpio);
+#define gpio_to_irq gpio_to_irq
extern int irq_to_gpio(unsigned int irq);
#endif