diff options
author | Thierry Reding <treding@nvidia.com> | 2014-10-02 09:28:00 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-02 12:52:10 +0200 |
commit | be1aa3ea1f4179cbc84c57d3b1128c49515910ac (patch) | |
tree | 4aa4fa6bad413e062f3adc6cce48482338652e04 /sound | |
parent | ASoC: tas2552: Add DAPM calls for amp and PLL (diff) | |
download | linux-be1aa3ea1f4179cbc84c57d3b1128c49515910ac.tar.xz linux-be1aa3ea1f4179cbc84c57d3b1128c49515910ac.zip |
ASoC: tas2552: Fix compilation warning for !PM_RUNTIME
The tas2552_sw_shutdown() function is only used by runtime suspend
support, so only build it when necessary.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/tas2552.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c index 1ed57a7e57b6..f039dc825971 100644 --- a/sound/soc/codecs/tas2552.c +++ b/sound/soc/codecs/tas2552.c @@ -115,6 +115,7 @@ static const struct snd_soc_dapm_route tas2552_audio_map[] = { {"ClassD", NULL, "PLL"}, }; +#ifdef CONFIG_PM_RUNTIME static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) { u8 cfg1_reg; @@ -127,6 +128,7 @@ static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) snd_soc_update_bits(tas_data->codec, TAS2552_CFG_1, TAS2552_SWS_MASK, cfg1_reg); } +#endif static int tas2552_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, |