ASoC: tas2552: Fix compilation warning for !PM_RUNTIME
authorThierry Reding <treding@nvidia.com>
Thu, 2 Oct 2014 07:28:00 +0000 (09:28 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 2 Oct 2014 10:52:10 +0000 (11:52 +0100)
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>
sound/soc/codecs/tas2552.c

index 1ed57a7e57b6f9cfd9a73e3f83baf77ea1d86f9b..f039dc82597198f9f50686f98d480024176d5bf7 100644 (file)
@@ -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,