diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-08-22 15:24:24 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-23 05:41:06 -0400 |
commit | 821ebc86efd4b42aa120076562b0fd4f03ec3c0c (patch) | |
tree | bd7cad93d23e8c3d5e9ecea7090f6e5490411549 /sound/soc | |
parent | 79fb9387f88b6b44bbc46e19cae26d2c9fe3bb6a (diff) |
ASoC: free socdev if init_card() fails in wm9705_soc_probe()
Free socdev if snd_soc_init_card() fails.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm9705.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index fa88b463e71f..e7d2840d9e59 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c | |||
@@ -406,7 +406,7 @@ static int wm9705_soc_probe(struct platform_device *pdev) | |||
406 | ret = snd_soc_init_card(socdev); | 406 | ret = snd_soc_init_card(socdev); |
407 | if (ret < 0) { | 407 | if (ret < 0) { |
408 | printk(KERN_ERR "wm9705: failed to register card\n"); | 408 | printk(KERN_ERR "wm9705: failed to register card\n"); |
409 | goto pcm_err; | 409 | goto reset_err; |
410 | } | 410 | } |
411 | 411 | ||
412 | return 0; | 412 | return 0; |