projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2a3dfb
)
m68k: Fall back to __gpio_to_irq() for non-arch GPIOs
author
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Wed, 26 Oct 2011 07:51:55 +0000
(09:51 +0200)
committer
Greg Ungerer
<gerg@uclinux.org>
Sat, 24 Dec 2011 11:47:56 +0000
(21:47 +1000)
gpiolib provides __gpio_to_irq() to map gpiolib gpios to interrupts - hook
that up on m68k.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/include/asm/gpio.h
patch
|
blob
|
history
diff --git
a/arch/m68k/include/asm/gpio.h
b/arch/m68k/include/asm/gpio.h
index b2046839f4b253dc4254115f548c87b81dc5a83d..00d0071de4c3a83e613755e0b314b28a48007a4c 100644
(file)
--- a/
arch/m68k/include/asm/gpio.h
+++ b/
arch/m68k/include/asm/gpio.h
@@
-225,7
+225,8
@@
static inline void gpio_set_value(unsigned gpio, int value)
static inline int gpio_to_irq(unsigned gpio)
{
- return (gpio < MCFGPIO_IRQ_MAX) ? gpio + MCFGPIO_IRQ_VECBASE : -EINVAL;
+ return (gpio < MCFGPIO_IRQ_MAX) ? gpio + MCFGPIO_IRQ_VECBASE
+ : __gpio_to_irq(gpio);
}
static inline int irq_to_gpio(unsigned irq)