mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 00:42:56 -04:00
greybus: gpio: use irq-domain lookups
Use irq_find_mapping directly rather than go through the legacy gpio interface. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2611ebef83
commit
ec762115a5
@@ -303,9 +303,9 @@ static int gb_gpio_request_recv(u8 type, struct gb_operation *op)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
irq = gpio_to_irq(ggc->chip.base + event->which);
|
||||
if (irq < 0) {
|
||||
dev_err(ggc->chip.dev, "failed to map irq\n");
|
||||
irq = irq_find_mapping(ggc->irqdomain, event->which);
|
||||
if (!irq) {
|
||||
dev_err(ggc->chip.dev, "failed to find IRQ\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
desc = irq_to_desc(irq);
|
||||
|
||||
Reference in New Issue
Block a user