Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Viresh Kumar and committed by
Dmitry Torokhov
f79e30a8 f8354c60

+2 -7
+2 -7
drivers/input/keyboard/spear-keyboard.c
··· 313 313 314 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 316 #endif 317 + 318 + static SIMPLE_DEV_PM_OPS(spear_kbd_pm_ops, spear_kbd_suspend, spear_kbd_resume); 322 319 323 320 static struct platform_driver spear_kbd_driver = { 324 321 .probe = spear_kbd_probe, ··· 323 326 .driver = { 324 327 .name = "keyboard", 325 328 .owner = THIS_MODULE, 326 - #ifdef CONFIG_PM 327 329 .pm = &spear_kbd_pm_ops, 328 - #endif 329 330 }, 330 331 }; 331 332 module_platform_driver(spear_kbd_driver);