diff mbox

[1/6] ASoC: pcm512x: Use CONFIG_PM_RUNTIME macro

Message ID 1396591153-10924-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Commit ccffbd27af95700f6e46f5300fcc96c0cda9f178
Headers show

Commit Message

Sachin Kamat April 4, 2014, 5:59 a.m. UTC
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>
---
 sound/soc/codecs/pcm512x.c |    2 ++
 1 file changed, 2 insertions(+)

Comments

Mark Brown April 14, 2014, 7:32 p.m. UTC | #1
On Fri, Apr 04, 2014 at 11:29:08AM +0530, Sachin Kamat wrote:
> 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]

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c
index 4b4c0c7..5112420 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)