gpio: tegra: remove gpio_to_irq() from hw irq handlers

gpio_to_irq() API expected to be used by GPIO consumers and
not drivers and there are no guarantee that its gpiolib implementation
is irq safe.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Grygorii Strashko 2017-07-08 17:44:11 -05:00 committed by Linus Walleij
parent 64fcf3b32e
commit c0debb3d68
1 changed files with 2 additions and 1 deletions

View File

@ -389,7 +389,8 @@ static void tegra_gpio_irq_handler(struct irq_desc *desc)
chained_irq_exit(chip, desc);
}
generic_handle_irq(gpio_to_irq(gpio + pin));
generic_handle_irq(irq_find_mapping(tgi->irq_domain,
gpio + pin));
}
}