Commit f79e30a8 authored by Viresh Kumar's avatar Viresh Kumar Committed by Dmitry Torokhov

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: default avatarViresh Kumar <viresh.kumar@st.com>
Signed-off-by: default avatarRajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent f8354c60
...@@ -313,22 +313,17 @@ static int spear_kbd_resume(struct device *dev) ...@@ -313,22 +313,17 @@ static int spear_kbd_resume(struct device *dev)
return 0; return 0;
} }
static const struct dev_pm_ops spear_kbd_pm_ops = {
.suspend = spear_kbd_suspend,
.resume = spear_kbd_resume,
};
#endif #endif
static SIMPLE_DEV_PM_OPS(spear_kbd_pm_ops, spear_kbd_suspend, spear_kbd_resume);
static struct platform_driver spear_kbd_driver = { static struct platform_driver spear_kbd_driver = {
.probe = spear_kbd_probe, .probe = spear_kbd_probe,
.remove = __devexit_p(spear_kbd_remove), .remove = __devexit_p(spear_kbd_remove),
.driver = { .driver = {
.name = "keyboard", .name = "keyboard",
.owner = THIS_MODULE, .owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &spear_kbd_pm_ops, .pm = &spear_kbd_pm_ops,
#endif
}, },
}; };
module_platform_driver(spear_kbd_driver); module_platform_driver(spear_kbd_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment