diff options
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 | ||