diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2012-02-24 03:51:37 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-02-28 04:18:32 -0500 |
commit | f79e30a809d829d094c0e33d3279c43aca71472f (patch) | |
tree | aec43fe4510419716ff8631f8779240227f3a8ec /drivers/input | |
parent | f8354c60ca2212810c168d8f992559226c8c0e71 (diff) |
Input: spear-keyboard - provide thaw and poweroff routines
Thaw and poweroff routines are missing for spear-keyboard. They are
required for:
- Error case scenarios during freeze
- Using test features, of hibernate.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Rajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/keyboard/spear-keyboard.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c index 933fb019b967..3b6b528f02fd 100644 --- a/drivers/input/keyboard/spear-keyboard.c +++ b/drivers/input/keyboard/spear-keyboard.c | |||
@@ -313,22 +313,17 @@ static int spear_kbd_resume(struct device *dev) | |||
313 | 313 | ||
314 | return 0; | 314 | return 0; |
315 | } | 315 | } |
316 | |||
317 | static const struct dev_pm_ops spear_kbd_pm_ops = { | ||
318 | .suspend = spear_kbd_suspend, | ||
319 | .resume = spear_kbd_resume, | ||
320 | }; | ||
321 | #endif | 316 | #endif |
322 | 317 | ||
318 | static SIMPLE_DEV_PM_OPS(spear_kbd_pm_ops, spear_kbd_suspend, spear_kbd_resume); | ||
319 | |||
323 | static struct platform_driver spear_kbd_driver = { | 320 | static struct platform_driver spear_kbd_driver = { |
324 | .probe = spear_kbd_probe, | 321 | .probe = spear_kbd_probe, |
325 | .remove = __devexit_p(spear_kbd_remove), | 322 | .remove = __devexit_p(spear_kbd_remove), |
326 | .driver = { | 323 | .driver = { |
327 | .name = "keyboard", | 324 | .name = "keyboard", |
328 | .owner = THIS_MODULE, | 325 | .owner = THIS_MODULE, |
329 | #ifdef CONFIG_PM | ||
330 | .pm = &spear_kbd_pm_ops, | 326 | .pm = &spear_kbd_pm_ops, |
331 | #endif | ||
332 | }, | 327 | }, |
333 | }; | 328 | }; |
334 | module_platform_driver(spear_kbd_driver); | 329 | module_platform_driver(spear_kbd_driver); |