Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307690
b: refs/heads/master
c: b3c64bc
h: refs/heads/master
v: v3
  • Loading branch information
Kevin Hilman committed May 18, 2012
1 parent e714eea commit 715f549
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22770de11cb13e7120f973bca6c800de371a6717
refs/heads/master: b3c64bc30af67ed328a8d919e41160942b870451
6 changes: 3 additions & 3 deletions trunk/drivers/gpio/gpio-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,9 +1157,6 @@ static int omap_gpio_runtime_suspend(struct device *dev)

spin_lock_irqsave(&bank->lock, flags);

if (!bank->enabled_non_wakeup_gpios)
goto update_gpio_context_count;

/*
* Only edges can generate a wakeup event to the PRCM.
*
Expand All @@ -1180,6 +1177,9 @@ static int omap_gpio_runtime_suspend(struct device *dev)
__raw_writel(wake_hi | bank->context.risingdetect,
bank->base + bank->regs->risingdetect);

if (!bank->enabled_non_wakeup_gpios)
goto update_gpio_context_count;

if (bank->power_mode != OFF_MODE) {
bank->power_mode = 0;
goto update_gpio_context_count;
Expand Down

0 comments on commit 715f549

Please sign in to comment.