summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-05-22 01:23:45 +0200
committerMark Brown <broonie@linaro.org>2014-05-22 01:23:45 +0200
commit497c11a946015f4b3d5fca91a17a79f134741642 (patch)
tree0ea63a8fba7e9e3722e00ded52c52a7ceb54034b /sound/soc
parentMerge remote-tracking branch 'asoc/topic/pcm' into asoc-next (diff)
parentASoC: pcm512x: Use CONFIG_PM_RUNTIME macro (diff)
downloadlinux-497c11a946015f4b3d5fca91a17a79f134741642.tar.xz
linux-497c11a946015f4b3d5fca91a17a79f134741642.zip
Merge remote-tracking branch 'asoc/topic/pcm512x' into asoc-next
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/pcm512x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c
index 381d22ce6f76..163ec3855fd4 100644
--- a/sound/soc/codecs/pcm512x.c
+++ b/sound/soc/codecs/pcm512x.c
@@ -517,6 +517,7 @@ void pcm512x_remove(struct device *dev)
}
EXPORT_SYMBOL_GPL(pcm512x_remove);
+#ifdef CONFIG_PM_RUNTIME
static int pcm512x_suspend(struct device *dev)
{
struct pcm512x_priv *pcm512x = dev_get_drvdata(dev);
@@ -578,6 +579,7 @@ static int pcm512x_resume(struct device *dev)
return 0;
}
+#endif
const struct dev_pm_ops pcm512x_pm_ops = {
SET_RUNTIME_PM_OPS(pcm512x_suspend, pcm512x_resume, NULL)