projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
184ab53
)
greybus: gpio.c: fix a bad irq number
author
Alexandre Bailon
<abailon@baylibre.com>
Mon, 2 Mar 2015 16:32:43 +0000
(17:32 +0100)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Mon, 2 Mar 2015 16:54:20 +0000
(08:54 -0800)
When it receive an interrupt, the function gb_gpio_request_recv doesn't
use the good gpio number to get the irq number. Then, the expected irq is never fired.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/gpio.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/gpio.c
b/drivers/staging/greybus/gpio.c
index
81901bd
..
4af5050
100644
(file)
--- a/
drivers/staging/greybus/gpio.c
+++ b/
drivers/staging/greybus/gpio.c
@@
-421,7
+421,7
@@
static void gb_gpio_request_recv(u8 type, struct gb_operation *op)
pr_err("Unsupported hw irq %d\n", event->which);
return;
}
- irq = gpio_to_irq(ggc->
irq_
base + event->which);
+ irq = gpio_to_irq(ggc->
chip.
base + event->which);
desc = irq_to_desc(irq);
/* Dispatch interrupt */