summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorAlex Gonzalez <alex.gonzalez@digi.com>2011-09-28 18:07:42 +0200
committerAlex Gonzalez <alex.gonzalez@digi.com>2011-09-28 18:07:42 +0200
commitd67b04c734467e10be8a1943398d8532b2f38e76 (patch)
tree9f6fb509ef76dcec1e03547e00223c3aa1e04b34 /sound
parentc52cba1c57a3f2ac6c11517b7965da469b4b8ac7 (diff)
ccwmx5x: Clean build with no PM support.
This fixes v40297. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-dapm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 03cb7c05ebec..b8d471465b39 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -437,8 +437,9 @@ static inline void dapm_clear_walk(struct snd_soc_codec *codec)
*/
static int snd_soc_dapm_suspend_check(struct snd_soc_dapm_widget *widget)
{
- struct snd_soc_codec *codec = widget->codec;
+ struct snd_soc_codec *codec;
+ codec = widget->codec;
switch (snd_power_get_state(codec->card)) {
case SNDRV_CTL_POWER_D3hot:
case SNDRV_CTL_POWER_D3cold: