aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio-omap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index f6b2c51b2935..41265e823b23 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -1352,10 +1352,6 @@ void omap2_gpio_resume_after_idle(void)
1352#if defined(CONFIG_PM_RUNTIME) 1352#if defined(CONFIG_PM_RUNTIME)
1353static void omap_gpio_restore_context(struct gpio_bank *bank) 1353static void omap_gpio_restore_context(struct gpio_bank *bank)
1354{ 1354{
1355 __raw_writel(bank->context.irqenable1,
1356 bank->base + bank->regs->irqenable);
1357 __raw_writel(bank->context.irqenable2,
1358 bank->base + bank->regs->irqenable2);
1359 __raw_writel(bank->context.wake_en, 1355 __raw_writel(bank->context.wake_en,
1360 bank->base + bank->regs->wkup_en); 1356 bank->base + bank->regs->wkup_en);
1361 __raw_writel(bank->context.ctrl, bank->base + bank->regs->ctrl); 1357 __raw_writel(bank->context.ctrl, bank->base + bank->regs->ctrl);
@@ -1375,6 +1371,11 @@ static void omap_gpio_restore_context(struct gpio_bank *bank)
1375 __raw_writel(bank->context.debounce_en, 1371 __raw_writel(bank->context.debounce_en,
1376 bank->base + bank->regs->debounce_en); 1372 bank->base + bank->regs->debounce_en);
1377 } 1373 }
1374
1375 __raw_writel(bank->context.irqenable1,
1376 bank->base + bank->regs->irqenable);
1377 __raw_writel(bank->context.irqenable2,
1378 bank->base + bank->regs->irqenable2);
1378} 1379}
1379#endif /* CONFIG_PM_RUNTIME */ 1380#endif /* CONFIG_PM_RUNTIME */
1380#else 1381#else