From: Peter Korsgaard Date: Tue, 1 Dec 2009 20:48:13 +0000 (+0100) Subject: powerpc/gpio: support gpio_to_irq() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=78331aded913d76c7ff996a1a0747d54b057460b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git powerpc/gpio: support gpio_to_irq() gpiolib returns -ENXIO if struct gpio_chip::to_irq isn't set, so it's safe to always call. Signed-off-by: Peter Korsgaard Signed-off-by: Kumar Gala --- diff --git a/arch/powerpc/include/asm/gpio.h b/arch/powerpc/include/asm/gpio.h index ea04632399d8..38762edb5e58 100644 --- a/arch/powerpc/include/asm/gpio.h +++ b/arch/powerpc/include/asm/gpio.h @@ -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)