summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/pcm512x.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-04-04 07:59:08 +0200
committerMark Brown <broonie@linaro.org>2014-04-14 21:32:38 +0200
commitccffbd27af95700f6e46f5300fcc96c0cda9f178 (patch)
treeda6f045fcfa810fc49813fad4bf1acd45cf34834 /sound/soc/codecs/pcm512x.c
parentLinux 3.15-rc1 (diff)
downloadlinux-ccffbd27af95700f6e46f5300fcc96c0cda9f178.tar.xz
linux-ccffbd27af95700f6e46f5300fcc96c0cda9f178.zip
ASoC: pcm512x: Use CONFIG_PM_RUNTIME macro
Fixes the following compilation warnings: sound/soc/codecs/pcm512x.c:520:12: warning: ‘pcm512x_suspend’ defined but not used [-Wunused-function] sound/soc/codecs/pcm512x.c:545:12: warning: ‘pcm512x_resume’ defined but not used [-Wunused-function] Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/pcm512x.c')
-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 4b4c0c7bb918..51124202f765 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)