gpio: omap: get rid of the conditional PM runtime calls
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 28 Sep 2018 21:39:50 +0000 (16:39 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 1 Oct 2018 10:28:57 +0000 (12:28 +0200)
commit467480738d0b33335032652b29776d82200db41a
treefa822dde9568646d0c2f0ac46f224539d6134148
parent8898240aaace9eb315b3e9c43bc132da6e62a953
gpio: omap: get rid of the conditional PM runtime calls

OMAP GPIO driver is checking !BANK_USED() used condition before calling PM
runtime API, because of PM runtime calls in
omap2_gpio_prepare/resume_for_idle(). It's not required any more since
"omap gpio add level idle, cpu_pm and drop runtime_irq_safe" series [1]
from Tony Lindgren was accepted and PM runtime management was enabled in
IRQ chip core by commit be45beb2df69 ("genirq: Add runtime power management
support for IRQ chips") .

As result safely drop !BANK_USED() checks from omap_gpio_request/free(),
omap_gpio_irq_bus_lock/unlock() and enable PM runtime management for OMAP
GPIO IRQ chip.

[1] https://www.spinics.net/lists/arm-kernel/msg677583.html
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c