Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260779
b: refs/heads/master
c: bdda821
h: refs/heads/master
i:
  260777: 4509d84
  260775: 89f695c
v: v3
  • Loading branch information
Dmitry Torokhov committed Jul 10, 2011
1 parent 12750da commit 2ca77eb
Show file tree
Hide file tree
Showing 2 changed files with 4 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: fd05d08920b54d189aa247c5c5701a08e539ed0b
refs/heads/master: bdda82162837a20e591ac01b306dc8f052270510
11 changes: 3 additions & 8 deletions trunk/drivers/input/keyboard/gpio_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ static int __devexit gpio_keys_remove(struct platform_device *pdev)
return 0;
}

#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP
static int gpio_keys_suspend(struct device *dev)
{
struct gpio_keys_drvdata *ddata = dev_get_drvdata(dev);
Expand Down Expand Up @@ -731,22 +731,17 @@ static int gpio_keys_resume(struct device *dev)

return 0;
}

static const struct dev_pm_ops gpio_keys_pm_ops = {
.suspend = gpio_keys_suspend,
.resume = gpio_keys_resume,
};
#endif

static SIMPLE_DEV_PM_OPS(gpio_keys_pm_ops, gpio_keys_suspend, gpio_keys_resume);

static struct platform_driver gpio_keys_device_driver = {
.probe = gpio_keys_probe,
.remove = __devexit_p(gpio_keys_remove),
.driver = {
.name = "gpio-keys",
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &gpio_keys_pm_ops,
#endif
.of_match_table = gpio_keys_of_match,
}
};
Expand Down

0 comments on commit 2ca77eb

Please sign in to comment.