projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bacd79
)
sh: Allow GPIO chips to register IRQ mappings.
author
Paul Mundt
<lethal@linux-sh.org>
Sat, 2 Oct 2010 18:55:39 +0000
(
03:55
+0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Sat, 2 Oct 2010 18:55:39 +0000
(
03:55
+0900)
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 <lethal@linux-sh.org>
arch/sh/include/asm/gpio.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/include/asm/gpio.h
b/arch/sh/include/asm/gpio.h
index f8d9a731e9033f9561dc088bc00b1d32cbb5bdf7..04f53d31489f2cc142f804bd444593305db27c01 100644
(file)
--- 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 */
This page took
0.025043 seconds
and
5
git commands to generate.