aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8727.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8727.c')
-rw-r--r--sound/soc/codecs/wm8727.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/codecs/wm8727.c b/sound/soc/codecs/wm8727.c
index 7df5a17eb733..d8ffbd641d71 100644
--- a/sound/soc/codecs/wm8727.c
+++ b/sound/soc/codecs/wm8727.c
@@ -68,17 +68,9 @@ static int wm8727_soc_probe(struct platform_device *pdev)
68 printk(KERN_ERR "wm8727: failed to create pcms\n"); 68 printk(KERN_ERR "wm8727: failed to create pcms\n");
69 goto pcm_err; 69 goto pcm_err;
70 } 70 }
71 /* register card */
72 ret = snd_soc_init_card(socdev);
73 if (ret < 0) {
74 printk(KERN_ERR "wm8727: failed to register card\n");
75 goto register_err;
76 }
77 71
78 return ret; 72 return ret;
79 73
80register_err:
81 snd_soc_free_pcms(socdev);
82pcm_err: 74pcm_err:
83 kfree(socdev->card->codec); 75 kfree(socdev->card->codec);
84 socdev->card->codec = NULL; 76 socdev->card->codec = NULL;