aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpio/gpio-omap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index 3ab4f4a..d11900a 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -1562,7 +1562,7 @@ int omap2_gpio_prepare_for_idle(int off_mode, bool suspend)
if (omap2_gpio_set_edge_wakeup(bank, suspend))
ret = -EBUSY;
- if (bank->loses_context && off_mode)
+ if (bank->loses_context)
if (pm_runtime_put_sync_suspend(bank->dev) < 0)
dev_err(bank->dev, "%s: GPIO bank %d "
"pm_runtime_put_sync failed\n",
@@ -1583,7 +1583,7 @@ void omap2_gpio_resume_after_idle(int off_mode)
if (!bank->mod_usage)
continue;
- if (bank->loses_context && off_mode)
+ if (bank->loses_context)
if (pm_runtime_get_sync(bank->dev) < 0)
dev_err(bank->dev, "%s: GPIO bank %d "
"pm_runtime_get_sync failed\n",