Input: spear-keyboard - provide thaw and poweroff routines
authorViresh Kumar <viresh.kumar@st.com>
Fri, 24 Feb 2012 08:51:37 +0000 (00:51 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 28 Feb 2012 09:18:32 +0000 (01:18 -0800)
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>
drivers/input/keyboard/spear-keyboard.c

index 933fb01..3b6b528 100644 (file)
@@ -313,22 +313,17 @@ static int spear_kbd_resume(struct device *dev)
 
        return 0;
 }
-
-static const struct dev_pm_ops spear_kbd_pm_ops = {
-       .suspend        = spear_kbd_suspend,
-       .resume         = spear_kbd_resume,
-};
 #endif
 
+static SIMPLE_DEV_PM_OPS(spear_kbd_pm_ops, spear_kbd_suspend, spear_kbd_resume);
+
 static struct platform_driver spear_kbd_driver = {
        .probe          = spear_kbd_probe,
        .remove         = __devexit_p(spear_kbd_remove),
        .driver         = {
                .name   = "keyboard",
                .owner  = THIS_MODULE,
-#ifdef CONFIG_PM
                .pm     = &spear_kbd_pm_ops,
-#endif
        },
 };
 module_platform_driver(spear_kbd_driver);