diff options
author | Frans Pop <elendil@planet.nl> | 2009-07-12 23:51:32 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-07-13 01:16:12 -0400 |
commit | 35db715bfd3805b04aa233b9933b9facfa9a3290 (patch) | |
tree | 4cf49e8492fe78e31e41bafa3d67c299a65e754c /drivers/input/misc/pcspkr.c | |
parent | 70a6f2e6d6b8653d394b63210ec57b4c78f3dcd8 (diff) |
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/misc/pcspkr.c')
-rw-r--r-- | drivers/input/misc/pcspkr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/input/misc/pcspkr.c b/drivers/input/misc/pcspkr.c index d6a30cee7bc7..663bbc7ae2f5 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) | |||
113 | return 0; | 113 | return 0; |
114 | } | 114 | } |
115 | 115 | ||
116 | static int pcspkr_suspend(struct platform_device *dev, pm_message_t state) | 116 | static int pcspkr_suspend(struct device *dev) |
117 | { | 117 | { |
118 | pcspkr_event(NULL, EV_SND, SND_BELL, 0); | 118 | pcspkr_event(NULL, EV_SND, SND_BELL, 0); |
119 | 119 | ||
@@ -126,14 +126,18 @@ static void pcspkr_shutdown(struct platform_device *dev) | |||
126 | pcspkr_event(NULL, EV_SND, SND_BELL, 0); | 126 | pcspkr_event(NULL, EV_SND, SND_BELL, 0); |
127 | } | 127 | } |
128 | 128 | ||
129 | static struct dev_pm_ops pcspkr_pm_ops = { | ||
130 | .suspend = pcspkr_suspend, | ||
131 | }; | ||
132 | |||
129 | static struct platform_driver pcspkr_platform_driver = { | 133 | static struct platform_driver pcspkr_platform_driver = { |
130 | .driver = { | 134 | .driver = { |
131 | .name = "pcspkr", | 135 | .name = "pcspkr", |
132 | .owner = THIS_MODULE, | 136 | .owner = THIS_MODULE, |
137 | .pm = &pcspkr_pm_ops, | ||
133 | }, | 138 | }, |
134 | .probe = pcspkr_probe, | 139 | .probe = pcspkr_probe, |
135 | .remove = __devexit_p(pcspkr_remove), | 140 | .remove = __devexit_p(pcspkr_remove), |
136 | .suspend = pcspkr_suspend, | ||
137 | .shutdown = pcspkr_shutdown, | 141 | .shutdown = pcspkr_shutdown, |
138 | }; | 142 | }; |
139 | 143 | ||