aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2011-05-04 23:54:27 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-05-05 11:49:18 -0400
commit9cc7c80b57c66d08e67f297169783d1f07288066 (patch)
treeb963de4fabb012b03dc3d54f55b983dbb906cc90 /drivers/input
parent4296f1ad5aa513500a87a4709579d31be8ba461f (diff)
Input: sh_keysc - only compile PM code if PM is enabled
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/keyboard/sh_keysc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/input/keyboard/sh_keysc.c b/drivers/input/keyboard/sh_keysc.c
index cb4f258477ce..834cf98e7efb 100644
--- a/drivers/input/keyboard/sh_keysc.c
+++ b/drivers/input/keyboard/sh_keysc.c
@@ -291,6 +291,7 @@ static int __devexit sh_keysc_remove(struct platform_device *pdev)
291 return 0; 291 return 0;
292} 292}
293 293
294#if CONFIG_PM_SLEEP
294static int sh_keysc_suspend(struct device *dev) 295static int sh_keysc_suspend(struct device *dev)
295{ 296{
296 struct platform_device *pdev = to_platform_device(dev); 297 struct platform_device *pdev = to_platform_device(dev);
@@ -323,11 +324,10 @@ static int sh_keysc_resume(struct device *dev)
323 324
324 return 0; 325 return 0;
325} 326}
327#endif
326 328
327static const struct dev_pm_ops sh_keysc_dev_pm_ops = { 329static SIMPLE_DEV_PM_OPS(sh_keysc_dev_pm_ops,
328 .suspend = sh_keysc_suspend, 330 sh_keysc_suspend, sh_keysc_resume);
329 .resume = sh_keysc_resume,
330};
331 331
332static struct platform_driver sh_keysc_device_driver = { 332static struct platform_driver sh_keysc_device_driver = {
333 .probe = sh_keysc_probe, 333 .probe = sh_keysc_probe,