Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318322
b: refs/heads/master
c: 53fe628
h: refs/heads/master
v: v3
  • Loading branch information
Shiraz Hashim authored and Dmitry Torokhov committed Jul 13, 2012
1 parent 7ccaa57 commit a9dd9b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 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: 9a932145f2d57bad1092ba006dee9065adc5eb39
refs/heads/master: 53fe628558bab9a11050ba067a09442c92dca6bb
18 changes: 10 additions & 8 deletions trunk/drivers/input/keyboard/spear-keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,12 @@ static int spear_kbd_suspend(struct device *dev)

mutex_lock(&input_dev->mutex);

if (input_dev->users)
clk_enable(kbd->clk);

if (device_may_wakeup(&pdev->dev))
if (device_may_wakeup(&pdev->dev)) {
enable_irq_wake(kbd->irq);
} else {
if (input_dev->users)
clk_disable(kbd->clk);
}

mutex_unlock(&input_dev->mutex);

Expand All @@ -339,11 +340,12 @@ static int spear_kbd_resume(struct device *dev)

mutex_lock(&input_dev->mutex);

if (device_may_wakeup(&pdev->dev))
if (device_may_wakeup(&pdev->dev)) {
disable_irq_wake(kbd->irq);

if (input_dev->users)
clk_enable(kbd->clk);
} else {
if (input_dev->users)
clk_enable(kbd->clk);
}

mutex_unlock(&input_dev->mutex);

Expand Down

0 comments on commit a9dd9b7

Please sign in to comment.