Commit d1b20d72 authored by Alexandre Bailon's avatar Alexandre Bailon Committed by Greg Kroah-Hartman

greybus: gpio.c: fix a bad irq number

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: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 184ab534
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment