summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorFrans Pop <elendil@planet.nl>2009-07-12 20:51:32 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-07-12 22:16:12 -0700
commit35db715bfd3805b04aa233b9933b9facfa9a3290 (patch)
tree4cf49e8492fe78e31e41bafa3d67c299a65e754c /drivers/input
parent70a6f2e6d6b8653d394b63210ec57b4c78f3dcd8 (diff)
downloadop-kernel-dev-35db715bfd3805b04aa233b9933b9facfa9a3290.zip
op-kernel-dev-35db715bfd3805b04aa233b9933b9facfa9a3290.tar.gz
Input: pcspkr - switch driver to dev_pm_ops
Gets rid of the following warning: Platform driver 'pcspkr' needs updating - please use dev_pm_ops Signed-off-by: Frans Pop <elendil@planet.nl> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/misc/pcspkr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/input/misc/pcspkr.c b/drivers/input/misc/pcspkr.c
index d6a30ce..663bbc7 100644
--- a/drivers/input/misc/pcspkr.c
+++ b/drivers/input/misc/pcspkr.c
@@ -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);
@@ -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,
};
OpenPOWER on IntegriCloud