summaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-26 09:51:55 +0200
committerGreg Ungerer <gerg@uclinux.org>2011-12-24 21:47:56 +1000
commitd85b40948654dee3be1d8e43b0fce511c1b42d78 (patch)
tree27788571779ee84ddded7da9705cbd035a0f7d71 /arch/m68k
parenta2a3dfb8efc5d14cf39358ae0ec1da39667c2e6c (diff)
downloadop-kernel-dev-d85b40948654dee3be1d8e43b0fce511c1b42d78.zip
op-kernel-dev-d85b40948654dee3be1d8e43b0fce511c1b42d78.tar.gz
m68k: Fall back to __gpio_to_irq() for non-arch GPIOs
gpiolib provides __gpio_to_irq() to map gpiolib gpios to interrupts - hook that up on m68k. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/include/asm/gpio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/gpio.h b/arch/m68k/include/asm/gpio.h
index b204683..00d0071 100644
--- a/arch/m68k/include/asm/gpio.h
+++ b/arch/m68k/include/asm/gpio.h
@@ -225,7 +225,8 @@ static inline void gpio_set_value(unsigned gpio, int value)
static inline int gpio_to_irq(unsigned gpio)
{
- return (gpio < MCFGPIO_IRQ_MAX) ? gpio + MCFGPIO_IRQ_VECBASE : -EINVAL;
+ return (gpio < MCFGPIO_IRQ_MAX) ? gpio + MCFGPIO_IRQ_VECBASE
+ : __gpio_to_irq(gpio);
}
static inline int irq_to_gpio(unsigned irq)
OpenPOWER on IntegriCloud