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

Commit cec05167 authored by Michal Simek's avatar Michal Simek
Browse files

microblaze: support gpio_to_irq()



gpiolib returns -ENXIO if struct gpio_chip::to_irq isn't set, so it's
safe to always call.

Based on PPC patch
"powerpc/gpio: support gpio_to_irq()"
78331ade

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent ac2e7c92
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -38,12 +38,9 @@ static inline int gpio_cansleep(unsigned int gpio)
	return __gpio_cansleep(gpio);
}

/*
 * Not implemented, yet.
 */
static inline int gpio_to_irq(unsigned int gpio)
{
	return -ENOSYS;
	return __gpio_to_irq(gpio);
}

static inline int irq_to_gpio(unsigned int irq)