From: Paul Mundt Date: Sat, 2 Oct 2010 18:55:39 +0000 (+0900) Subject: sh: Allow GPIO chips to register IRQ mappings. X-Git-Tag: v3.12-rc1~8388^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=532f3759d71d1fceb494212187dacc5a78295dc3;p=kernel%2Fkernel-generic.git sh: Allow GPIO chips to register IRQ mappings. As non-PFC chips are added that may support IRQs, pass through to the generic helper instead of triggering the WARN_ON(). Signed-off-by: Paul Mundt --- diff --git a/arch/sh/include/asm/gpio.h b/arch/sh/include/asm/gpio.h index f8d9a73..04f53d3 100644 --- a/arch/sh/include/asm/gpio.h +++ b/arch/sh/include/asm/gpio.h @@ -41,14 +41,12 @@ static inline int gpio_cansleep(unsigned gpio) static inline int gpio_to_irq(unsigned gpio) { - WARN_ON(1); - return -ENOSYS; + return __gpio_to_irq(gpio); } static inline int irq_to_gpio(unsigned int irq) { - WARN_ON(1); - return -EINVAL; + return -ENOSYS; } #endif /* CONFIG_GPIOLIB */