Commit c1801bba authored by Tony Lindgren's avatar Tony Lindgren

Revert "omap-fixes,"

This reverts commit 2ac496a2.

The commit message got lost as noted by Kevin.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 2ac496a2
......@@ -837,10 +837,13 @@ static int _set_gpio_wakeup(struct gpio_bank *bank, int gpio, int enable)
case METHOD_MPUIO:
case METHOD_GPIO_1610:
spin_lock_irqsave(&bank->lock, flags);
if (enable)
if (enable) {
bank->suspend_wakeup |= (1 << gpio);
else
enable_irq_wake(bank->irq);
} else {
disable_irq_wake(bank->irq);
bank->suspend_wakeup &= ~(1 << gpio);
}
spin_unlock_irqrestore(&bank->lock, flags);
return 0;
#endif
......@@ -853,10 +856,13 @@ static int _set_gpio_wakeup(struct gpio_bank *bank, int gpio, int enable)
return -EINVAL;
}
spin_lock_irqsave(&bank->lock, flags);
if (enable)
if (enable) {
bank->suspend_wakeup |= (1 << gpio);
else
enable_irq_wake(bank->irq);
} else {
disable_irq_wake(bank->irq);
bank->suspend_wakeup &= ~(1 << gpio);
}
spin_unlock_irqrestore(&bank->lock, flags);
return 0;
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment