diff options
author | Ken Chang <kenc@nvidia.com> | 2011-12-21 13:14:47 +0800 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-30 10:46:25 +0530 |
commit | e57a97a5fb84e5600127ff539f37f150dc177ff4 (patch) | |
tree | 97ceff283c0f30499967e087fcc21ab6ab9f005a /sound | |
parent | eb668ee05abbeab775733529b891bf23589ab051 (diff) |
asoc: tegra: fix compiler error without CONFIG_PM
enclose the init fuction for i2s reg cache with CONFIG_PM
Change-Id: I4828059e397c151a5ad853b6a45a553c480ac197
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/71581
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/tegra/tegra30_i2s.c | 4 |
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; } |