summaryrefslogtreecommitdiff
path: root/sound/soc/tegra/tegra30_i2s.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/tegra/tegra30_i2s.c')
-rw-r--r--sound/soc/tegra/tegra30_i2s.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c
index d8edcfba096d..f540e4bb11d3 100644
--- a/sound/soc/tegra/tegra30_i2s.c
+++ b/sound/soc/tegra/tegra30_i2s.c
@@ -477,11 +477,14 @@ static int tegra30_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
static int tegra30_i2s_probe(struct snd_soc_dai *dai)
{
struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai);
+#ifdef CONFIG_PM
int i;
+#endif
dai->capture_dma_data = &i2s->capture_dma_data;
dai->playback_dma_data = &i2s->playback_dma_data;
+#ifdef CONFIG_PM
tegra30_i2s_enable_clocks(i2s);
/*cache the POR values of i2s regs*/
@@ -489,6 +492,7 @@ static int tegra30_i2s_probe(struct snd_soc_dai *dai)
i2s->reg_cache[i] = tegra30_i2s_read(i2s, i<<2);
tegra30_i2s_disable_clocks(i2s);
+#endif
return 0;
}