diff options
| author | 2017-07-08 17:44:11 -0500 | |
|---|---|---|
| committer | 2017-08-14 15:01:12 +0200 | |
| commit | c0debb3d68c3dc63f6565943b316019597587d7a (patch) | |
| tree | 93aeae73f068a0521f7e6d2073717a485c5d04ef /drivers/gpio/gpio-tegra.c | |
| parent | gpio: pxa: remove gpio_to_irq() from hw irq handlers (diff) | |
| download | wireguard-linux-c0debb3d68c3dc63f6565943b316019597587d7a.tar.xz wireguard-linux-c0debb3d68c3dc63f6565943b316019597587d7a.zip | |
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>
Diffstat (limited to 'drivers/gpio/gpio-tegra.c')
| -rw-r--r-- | drivers/gpio/gpio-tegra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 506c6a67c5fc..1e72c52fbf35 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -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)); } } |
