aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/st-keyscan.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-08-05 18:57:18 -0700
committerDavid S. Miller <davem@davemloft.net>2014-08-05 18:57:18 -0700
commite9011d086674caeedb0ffb6eb5b8bc5920821df3 (patch)
treeed5d06353d8dc1fa5f6da349808f8345ca2291a5 /drivers/input/keyboard/st-keyscan.c
parentMerge branch 'sparc64_io' (diff)
parentsparc: Add "install" target (diff)
downloadlinux-dev-e9011d086674caeedb0ffb6eb5b8bc5920821df3.tar.xz
linux-dev-e9011d086674caeedb0ffb6eb5b8bc5920821df3.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
Conflicts: arch/sparc/mm/init_64.c Conflict was simple non-overlapping additions. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/input/keyboard/st-keyscan.c')
-rw-r--r--drivers/input/keyboard/st-keyscan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/keyboard/st-keyscan.c b/drivers/input/keyboard/st-keyscan.c
index 758b48731415..de7be4f03d91 100644
--- a/drivers/input/keyboard/st-keyscan.c
+++ b/drivers/input/keyboard/st-keyscan.c
@@ -215,6 +215,7 @@ static int keyscan_probe(struct platform_device *pdev)
return 0;
}
+#ifdef CONFIG_PM_SLEEP
static int keyscan_suspend(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
@@ -249,6 +250,7 @@ static int keyscan_resume(struct device *dev)
mutex_unlock(&input->mutex);
return retval;
}
+#endif
static SIMPLE_DEV_PM_OPS(keyscan_dev_pm_ops, keyscan_suspend, keyscan_resume);