All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] ASoC: pcm512x: Use CONFIG_PM_RUNTIME macro
@ 2014-04-04  5:59 Sachin Kamat
  2014-04-04  5:59 ` [PATCH 2/6] ASoC: hdmi: Include of.h Sachin Kamat
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Sachin Kamat @ 2014-04-04  5:59 UTC (permalink / raw)
  To: alsa-devel; +Cc: sachin.kamat, broonie, lgirdwood

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(+)

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)
-- 
1.7.9.5

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-04-14 19:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-04  5:59 [PATCH 1/6] ASoC: pcm512x: Use CONFIG_PM_RUNTIME macro Sachin Kamat
2014-04-04  5:59 ` [PATCH 2/6] ASoC: hdmi: Include of.h Sachin Kamat
2014-04-14 19:34   ` Mark Brown
2014-04-04  5:59 ` [PATCH 3/6] ASoC: max98090: " Sachin Kamat
2014-04-14 19:35   ` Mark Brown
2014-04-04  5:59 ` [PATCH 4/6] ASoC: rt5640: " Sachin Kamat
2014-04-14 19:35   ` Mark Brown
2014-04-04  5:59 ` [PATCH 5/6] ASoC: tlv320aic23: " Sachin Kamat
2014-04-14 19:35   ` Mark Brown
2014-04-04  5:59 ` [PATCH 6/6] ASoC: tpa6130a2: " Sachin Kamat
2014-04-14 19:35   ` Mark Brown
2014-04-14 19:32 ` [PATCH 1/6] ASoC: pcm512x: Use CONFIG_PM_RUNTIME macro Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.