diff options
author | Grygorii Strashko <grygorii.strashko@linaro.org> | 2015-03-06 21:26:56 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-03-09 18:28:53 +0100 |
commit | 878ce05894284d3eb683e7d249d09c796c02d73b (patch) | |
tree | e2966b834fa8b9d949d5115599888cc20e36d0b1 /drivers/gpio | |
parent | de3b696542d3e0fb897149680821dae480c314af (diff) | |
download | linux-stable-878ce05894284d3eb683e7d249d09c796c02d73b.tar.gz linux-stable-878ce05894284d3eb683e7d249d09c796c02d73b.tar.bz2 linux-stable-878ce05894284d3eb683e7d249d09c796c02d73b.zip |
gpio: omap: irq_shutdown: remove unnecessary call of gpiochip_unlock_as_irq
GPIOLib core implemnts irqchip->irq_request/release_resources callbacks
internally and these callbacks already contain clalls of
gpiochip_lock/unlock_as_irq().
Hence, remove unnecessary call of gpiochip_unlock_as_irq() from
omap_gpio_irq_shutdown().
Signed-off-by: Grygorii Strashko <grygorii.strashko@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index f476ae2eb0b3..2b2fc4ba8c6d 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -826,7 +826,6 @@ static void omap_gpio_irq_shutdown(struct irq_data *d) unsigned offset = GPIO_INDEX(bank, gpio); spin_lock_irqsave(&bank->lock, flags); - gpiochip_unlock_as_irq(&bank->chip, offset); bank->irq_usage &= ~(BIT(offset)); omap_disable_gpio_module(bank, offset); omap_reset_gpio(bank, gpio); |