提交 532f3759 编写于 作者: P Paul Mundt

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: NPaul Mundt <lethal@linux-sh.org>
上级 4bacd796
...@@ -41,14 +41,12 @@ static inline int gpio_cansleep(unsigned gpio) ...@@ -41,14 +41,12 @@ static inline int gpio_cansleep(unsigned gpio)
static inline int gpio_to_irq(unsigned gpio) static inline int gpio_to_irq(unsigned gpio)
{ {
WARN_ON(1); return __gpio_to_irq(gpio);
return -ENOSYS;
} }
static inline int irq_to_gpio(unsigned int irq) static inline int irq_to_gpio(unsigned int irq)
{ {
WARN_ON(1); return -ENOSYS;
return -EINVAL;
} }
#endif /* CONFIG_GPIOLIB */ #endif /* CONFIG_GPIOLIB */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册