ASoC: Revert missing reset_err in wm97*.c
authorTakashi Iwai <tiwai@suse.de>
Fri, 27 Nov 2009 14:14:09 +0000 (15:14 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Nov 2009 14:14:09 +0000 (15:14 +0100)
The commit fe3e78e073d25308756f38019956061153267769
      ASoC: Factor out snd_soc_init_card()
removed the error paths that are still valid for wm97* codecs, causing
the compile errors like
  sound/soc/codecs/wm9705.c:399: error: label 'reset_err' used but not defined
  sound/soc/codecs/wm9712.c:687: error: label 'reset_err' used but not defined
  sound/soc/codecs/wm9713.c:1237: error: label 'reset_err' used but not defined

Revert the removed error path codes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/codecs/wm9705.c
sound/soc/codecs/wm9712.c
sound/soc/codecs/wm9713.c

index dfffc6c..ec54c6d 100644 (file)
@@ -404,6 +404,8 @@ static int wm9705_soc_probe(struct platform_device *pdev)
 
        return 0;
 
+reset_err:
+       snd_soc_free_pcms(socdev);
 pcm_err:
        snd_soc_free_ac97_codec(codec);
 codec_err:
index 2a08722..0ac1215 100644 (file)
@@ -697,6 +697,8 @@ static int wm9712_soc_probe(struct platform_device *pdev)
 
        return 0;
 
+reset_err:
+       snd_soc_free_pcms(socdev);
 pcm_err:
        snd_soc_free_ac97_codec(codec);
 
index 00bac31..4d74ecb 100644 (file)
@@ -1249,6 +1249,8 @@ static int wm9713_soc_probe(struct platform_device *pdev)
 
        return 0;
 
+reset_err:
+       snd_soc_free_pcms(socdev);
 pcm_err:
        snd_soc_free_ac97_codec(codec);