From: Alexandre Bailon Date: Mon, 2 Mar 2015 16:32:43 +0000 (+0100) Subject: greybus: gpio.c: fix a bad irq number X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1691 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d1b20d72ae01a2846ed4cad7bfef0bea717ffb68;p=karo-tx-linux.git 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: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c index 81901bdd9477..4af5050edea0 100644 --- 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 */