mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
Input: sh_keysc - only compile PM code if PM is enabled
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
4296f1ad5a
commit
9cc7c80b57
1 changed files with 4 additions and 4 deletions
|
@ -291,6 +291,7 @@ static int __devexit sh_keysc_remove(struct platform_device *pdev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG_PM_SLEEP
|
||||||
static int sh_keysc_suspend(struct device *dev)
|
static int sh_keysc_suspend(struct device *dev)
|
||||||
{
|
{
|
||||||
struct platform_device *pdev = to_platform_device(dev);
|
struct platform_device *pdev = to_platform_device(dev);
|
||||||
|
@ -323,11 +324,10 @@ static int sh_keysc_resume(struct device *dev)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static const struct dev_pm_ops sh_keysc_dev_pm_ops = {
|
static SIMPLE_DEV_PM_OPS(sh_keysc_dev_pm_ops,
|
||||||
.suspend = sh_keysc_suspend,
|
sh_keysc_suspend, sh_keysc_resume);
|
||||||
.resume = sh_keysc_resume,
|
|
||||||
};
|
|
||||||
|
|
||||||
static struct platform_driver sh_keysc_device_driver = {
|
static struct platform_driver sh_keysc_device_driver = {
|
||||||
.probe = sh_keysc_probe,
|
.probe = sh_keysc_probe,
|
||||||
|
|
Loading…
Reference in a new issue