aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-10-02 03:28:00 -0400
committerMark Brown <broonie@kernel.org>2014-10-02 06:52:10 -0400
commitbe1aa3ea1f4179cbc84c57d3b1128c49515910ac (patch)
tree4aa4fa6bad413e062f3adc6cce48482338652e04 /sound
parenta7a8e994ddd004fbabfcf04c26c204297b5f826d (diff)
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.c2
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[] = {
115 {"ClassD", NULL, "PLL"}, 115 {"ClassD", NULL, "PLL"},
116}; 116};
117 117
118#ifdef CONFIG_PM_RUNTIME
118static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) 119static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown)
119{ 120{
120 u8 cfg1_reg; 121 u8 cfg1_reg;
@@ -127,6 +128,7 @@ static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown)
127 snd_soc_update_bits(tas_data->codec, TAS2552_CFG_1, 128 snd_soc_update_bits(tas_data->codec, TAS2552_CFG_1,
128 TAS2552_SWS_MASK, cfg1_reg); 129 TAS2552_SWS_MASK, cfg1_reg);
129} 130}
131#endif
130 132
131static int tas2552_hw_params(struct snd_pcm_substream *substream, 133static int tas2552_hw_params(struct snd_pcm_substream *substream,
132 struct snd_pcm_hw_params *params, 134 struct snd_pcm_hw_params *params,