Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d85b4094 authored by Mark Brown's avatar Mark Brown Committed by Greg Ungerer
Browse files

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
parent a2a3dfb8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)