diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-08-12 20:26:38 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-08-12 20:26:38 +0400 |
commit | c012cdc858db36ff2314469930bfcfb00eef6f29 (patch) | |
tree | 6038ccd1dec55f82642f6036a75af57cb6b2a921 /sound/soc/codecs/wm8903.c | |
parent | 15439bde3af7ff88459ea2b5520b77312e958df2 (diff) | |
parent | f6b864a9071e21186476910613ec9913b56067a2 (diff) | |
download | linux-c012cdc858db36ff2314469930bfcfb00eef6f29.tar.xz |
Merge branch 'fix/asoc' into for-linus
Diffstat (limited to 'sound/soc/codecs/wm8903.c')
-rw-r--r-- | sound/soc/codecs/wm8903.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index 43e3d760766f..4ad8ebd290e3 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c @@ -2046,8 +2046,13 @@ static int wm8903_probe(struct snd_soc_codec *codec) /* power down chip */ static int wm8903_remove(struct snd_soc_codec *codec) { + struct wm8903_priv *wm8903 = snd_soc_codec_get_drvdata(codec); + wm8903_free_gpio(codec); wm8903_set_bias_level(codec, SND_SOC_BIAS_OFF); + if (wm8903->irq) + free_irq(wm8903->irq, codec); + return 0; } |