Skip to content

Commit

Permalink
microblaze: support gpio_to_irq()
Browse files Browse the repository at this point in the history
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()"
78331ad

Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
michalsimek committed Oct 21, 2010
1 parent ac2e7c9 commit cec0516
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/microblaze/include/asm/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cec0516

Please sign in to comment.