Skip to content

Commit

Permalink
ARM: mach-shmobile: Allow GPIO chips to register IRQ mappings.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Nov 4, 2010
1 parent 5c4e0f1 commit cad3cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-shmobile/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit cad3cde

Please sign in to comment.