]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: pcm512x: Use CONFIG_PM_RUNTIME macro
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 4 Apr 2014 05:59:08 +0000 (11:29 +0530)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 19:32:38 +0000 (20:32 +0100)
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>
sound/soc/codecs/pcm512x.c

index 4b4c0c7bb918febbf405b1422a899a0367e63db6..51124202f765e63bdc2980374eb42cd0f694b978 100644 (file)
@@ -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)