Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155611
b: refs/heads/master
c: 35db715
h: refs/heads/master
i:
  155609: 4cc2699
  155607: b5827ac
v: v3
  • Loading branch information
Frans Pop authored and Dmitry Torokhov committed Jul 13, 2009
1 parent b3417e4 commit b84ebf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 70a6f2e6d6b8653d394b63210ec57b4c78f3dcd8
refs/heads/master: 35db715bfd3805b04aa233b9933b9facfa9a3290
8 changes: 6 additions & 2 deletions trunk/drivers/input/misc/pcspkr.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static int __devexit pcspkr_remove(struct platform_device *dev)
return 0;
}

static int pcspkr_suspend(struct platform_device *dev, pm_message_t state)
static int pcspkr_suspend(struct device *dev)
{
pcspkr_event(NULL, EV_SND, SND_BELL, 0);

Expand All @@ -126,14 +126,18 @@ static void pcspkr_shutdown(struct platform_device *dev)
pcspkr_event(NULL, EV_SND, SND_BELL, 0);
}

static struct dev_pm_ops pcspkr_pm_ops = {
.suspend = pcspkr_suspend,
};

static struct platform_driver pcspkr_platform_driver = {
.driver = {
.name = "pcspkr",
.owner = THIS_MODULE,
.pm = &pcspkr_pm_ops,
},
.probe = pcspkr_probe,
.remove = __devexit_p(pcspkr_remove),
.suspend = pcspkr_suspend,
.shutdown = pcspkr_shutdown,
};

Expand Down

0 comments on commit b84ebf5

Please sign in to comment.