summaryrefslogtreecommitdiffstats
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)
downloadtalos-op-linux-cad3cde3f6f2a7854489f957dc22aa9a23afb06c.tar.gz
talos-op-linux-cad3cde3f6f2a7854489f957dc22aa9a23afb06c.zip
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 5bc6bd444d72..2b1bb9e43dda 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 */
OpenPOWER on IntegriCloud