diff options
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm9705.c | 2 | ||||
-rw-r--r-- | sound/soc/codecs/wm9712.c | 2 | ||||
-rw-r--r-- | sound/soc/codecs/wm9713.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index dfffc6c778c0..ec54c6da9856 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c | |||
@@ -404,6 +404,8 @@ static int wm9705_soc_probe(struct platform_device *pdev) | |||
404 | 404 | ||
405 | return 0; | 405 | return 0; |
406 | 406 | ||
407 | reset_err: | ||
408 | snd_soc_free_pcms(socdev); | ||
407 | pcm_err: | 409 | pcm_err: |
408 | snd_soc_free_ac97_codec(codec); | 410 | snd_soc_free_ac97_codec(codec); |
409 | codec_err: | 411 | codec_err: |
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index 2a0872273007..0ac1215dcd9b 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c | |||
@@ -697,6 +697,8 @@ static int wm9712_soc_probe(struct platform_device *pdev) | |||
697 | 697 | ||
698 | return 0; | 698 | return 0; |
699 | 699 | ||
700 | reset_err: | ||
701 | snd_soc_free_pcms(socdev); | ||
700 | pcm_err: | 702 | pcm_err: |
701 | snd_soc_free_ac97_codec(codec); | 703 | snd_soc_free_ac97_codec(codec); |
702 | 704 | ||
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c index 00bac315fb3b..4d74ecb0e56b 100644 --- a/sound/soc/codecs/wm9713.c +++ b/sound/soc/codecs/wm9713.c | |||
@@ -1249,6 +1249,8 @@ static int wm9713_soc_probe(struct platform_device *pdev) | |||
1249 | 1249 | ||
1250 | return 0; | 1250 | return 0; |
1251 | 1251 | ||
1252 | reset_err: | ||
1253 | snd_soc_free_pcms(socdev); | ||
1252 | pcm_err: | 1254 | pcm_err: |
1253 | snd_soc_free_ac97_codec(codec); | 1255 | snd_soc_free_ac97_codec(codec); |
1254 | 1256 | ||