aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-10-02 03:27:03 -0400
committerMark Brown <broonie@kernel.org>2014-10-02 06:53:11 -0400
commit81f3dfe1908011ee12760ce4d75451e7446dff80 (patch)
tree8ddadd31639c741c371b4c9b41f9a7096eb24526 /sound/soc/codecs
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff)
ASoC: rt286: Fix compilation warning for !PM
The rt286_index_sync() function is only called in the resume path. If PM is disabled it becomes unused and shouldn't be built either. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/rt286.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt286.c b/sound/soc/codecs/rt286.c
index e4f6102efc1a..2bb5a27c70f4 100644
--- a/sound/soc/codecs/rt286.c
+++ b/sound/soc/codecs/rt286.c
@@ -270,6 +270,7 @@ static int rt286_hw_read(void *context, unsigned int reg, unsigned int *value)
270 return 0; 270 return 0;
271} 271}
272 272
273#ifdef CONFIG_PM
273static void rt286_index_sync(struct snd_soc_codec *codec) 274static void rt286_index_sync(struct snd_soc_codec *codec)
274{ 275{
275 struct rt286_priv *rt286 = snd_soc_codec_get_drvdata(codec); 276 struct rt286_priv *rt286 = snd_soc_codec_get_drvdata(codec);
@@ -280,6 +281,7 @@ static void rt286_index_sync(struct snd_soc_codec *codec)
280 rt286->index_cache[i].def); 281 rt286->index_cache[i].def);
281 } 282 }
282} 283}
284#endif
283 285
284static int rt286_support_power_controls[] = { 286static int rt286_support_power_controls[] = {
285 RT286_DAC_OUT1, 287 RT286_DAC_OUT1,