Commit 8bb65fc0 authored by Grygorii Strashko's avatar Grygorii Strashko Committed by Linus Walleij

gpio: gpio-reg: fix build

Revert changes introduced by commit f0fbe7bc ("gpio: Move irqdomain
into struct gpio_irq_chip") as they are not aplicable to this driver.
Reported-by: default avatarRussell King - ARM Linux <linux@armlinux.org.uk>
Fixes: f0fbe7bc ("gpio: Move irqdomain into struct gpio_irq_chip")
Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 1291a0d5
......@@ -103,8 +103,8 @@ static int gpio_reg_to_irq(struct gpio_chip *gc, unsigned offset)
struct gpio_reg *r = to_gpio_reg(gc);
int irq = r->irqs[offset];
if (irq >= 0 && r->irq.domain)
irq = irq_find_mapping(r->irq.domain, irq);
if (irq >= 0 && r->irqdomain)
irq = irq_find_mapping(r->irqdomain, irq);
return irq;
}
......
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