summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/max98088.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-11-26 17:17:42 +0100
committerTakashi Iwai <tiwai@suse.de>2010-11-26 17:17:42 +0100
commit37fa84d8e647e584bf1b71bdff0330049e34f5ef (patch)
tree6575dc8f4771be4677a2810756b1be518db1eb55 /sound/soc/codecs/max98088.c
parent5a8cfb4e8ae317d283f84122ed20faa069c5e0c4 (diff)
parent25436180ee8bed6740f29d92c2030c759885c147 (diff)
Merge branch 'fix/asoc' into for-linus
Diffstat (limited to 'sound/soc/codecs/max98088.c')
-rw-r--r--sound/soc/codecs/max98088.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c
index 470cb93b1d1f..d63e28773eb1 100644
--- a/sound/soc/codecs/max98088.c
+++ b/sound/soc/codecs/max98088.c
@@ -2019,7 +2019,10 @@ err_access:
static int max98088_remove(struct snd_soc_codec *codec)
{
+ struct max98088_priv *max98088 = snd_soc_codec_get_drvdata(codec);
+
max98088_set_bias_level(codec, SND_SOC_BIAS_OFF);
+ kfree(max98088->eq_texts);
return 0;
}