aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-11-04 12:19:11 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-11-04 12:19:11 +0900
commitcad3cde3f6f2a7854489f957dc22aa9a23afb06c (patch)
tree96e6da0f2d13b44384cfd88f848f954c4b550af3 /arch
parent5c4e0f198d670338daf296e95b7536fdb3489590 (diff)
downloadkernel_samsung_smdk4412-cad3cde3f6f2a7854489f957dc22aa9a23afb06c.zip
kernel_samsung_smdk4412-cad3cde3f6f2a7854489f957dc22aa9a23afb06c.tar.gz
kernel_samsung_smdk4412-cad3cde3f6f2a7854489f957dc22aa9a23afb06c.tar.bz2
ARM: mach-shmobile: Allow GPIO chips to register IRQ mappings.
As non-PFC chips are added that may support IRQs, pass through to the generic helper. This follows the the SH change. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-shmobile/include/mach/gpio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/gpio.h b/arch/arm/mach-shmobile/include/mach/gpio.h
index 5bc6bd4..2b1bb9e 100644
--- a/arch/arm/mach-shmobile/include/mach/gpio.h
+++ b/arch/arm/mach-shmobile/include/mach/gpio.h
@@ -35,12 +35,12 @@ static inline int gpio_cansleep(unsigned gpio)
static inline int gpio_to_irq(unsigned gpio)
{
- return -ENOSYS;
+ return __gpio_to_irq(gpio);
}
static inline int irq_to_gpio(unsigned int irq)
{
- return -EINVAL;
+ return -ENOSYS;
}
#endif /* CONFIG_GPIOLIB */