Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293998
b: refs/heads/master
c: 89f0f17
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Jan 23, 2012
1 parent ed4a074 commit e525e1e
Show file tree
Hide file tree
Showing 2 changed files with 5 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: db3dbd093a7cbb201f169ace35f6cdff562e5a77
refs/heads/master: 89f0f170fbec6290637c3172cb08ddf31f211ef0
12 changes: 4 additions & 8 deletions trunk/drivers/input/keyboard/nomadik-ske-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static int __devexit ske_keypad_remove(struct platform_device *pdev)
return 0;
}

#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP
static int ske_keypad_suspend(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
Expand Down Expand Up @@ -372,20 +372,16 @@ static int ske_keypad_resume(struct device *dev)

return 0;
}

static const struct dev_pm_ops ske_keypad_dev_pm_ops = {
.suspend = ske_keypad_suspend,
.resume = ske_keypad_resume,
};
#endif

static SIMPLE_DEV_PM_OPS(ske_keypad_dev_pm_ops,
ske_keypad_suspend, ske_keypad_resume);

static struct platform_driver ske_keypad_driver = {
.driver = {
.name = "nmk-ske-keypad",
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &ske_keypad_dev_pm_ops,
#endif
},
.remove = __devexit_p(ske_keypad_remove),
};
Expand Down

0 comments on commit e525e1e

Please sign in to comment.