Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81f3dfe1 authored by Thierry Reding's avatar Thierry Reding Committed by Mark Brown
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7d1311b9
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -270,6 +270,7 @@ static int rt286_hw_read(void *context, unsigned int reg, unsigned int *value)
	return 0;
	return 0;
}
}


#ifdef CONFIG_PM
static void rt286_index_sync(struct snd_soc_codec *codec)
static void rt286_index_sync(struct snd_soc_codec *codec)
{
{
	struct rt286_priv *rt286 = snd_soc_codec_get_drvdata(codec);
	struct rt286_priv *rt286 = snd_soc_codec_get_drvdata(codec);
@@ -280,6 +281,7 @@ static void rt286_index_sync(struct snd_soc_codec *codec)
				  rt286->index_cache[i].def);
				  rt286->index_cache[i].def);
	}
	}
}
}
#endif


static int rt286_support_power_controls[] = {
static int rt286_support_power_controls[] = {
	RT286_DAC_OUT1,
	RT286_DAC_OUT1,