summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-08-22 21:24:24 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-08-23 11:41:06 +0200
commit821ebc86efd4b42aa120076562b0fd4f03ec3c0c (patch)
treebd7cad93d23e8c3d5e9ecea7090f6e5490411549
parentASoC: Add DAPM widget power decision debugfs files (diff)
downloadlinux-821ebc86efd4b42aa120076562b0fd4f03ec3c0c.tar.xz
linux-821ebc86efd4b42aa120076562b0fd4f03ec3c0c.zip
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>
-rw-r--r--sound/soc/codecs/wm9705.c2
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)
ret = snd_soc_init_card(socdev);
if (ret < 0) {
printk(KERN_ERR "wm9705: failed to register card\n");
- goto pcm_err;
+ goto reset_err;
}
return 0;