From f87767e27be39b6d20e77b5d6fc1dbad95aeac1f Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 7 Dec 2011 10:01:30 +0800 Subject: [PATCH] --- yaml --- r: 283897 b: refs/heads/master c: 8faab941bec7af1c1865db316ac2f37c78071271 h: refs/heads/master i: 283895: c8173cb4ba413d48551ec7397d13cff7b856ca24 v: v3 --- [refs] | 2 +- trunk/sound/soc/pxa/e800_wm9712.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 8b74f802170b..78b75c7d37dc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5ff7ada748fe2f74f525893577c4418bfdaf6d4f +refs/heads/master: 8faab941bec7af1c1865db316ac2f37c78071271 diff --git a/trunk/sound/soc/pxa/e800_wm9712.c b/trunk/sound/soc/pxa/e800_wm9712.c index 6a8f38b6c379..26e02322f10b 100644 --- a/trunk/sound/soc/pxa/e800_wm9712.c +++ b/trunk/sound/soc/pxa/e800_wm9712.c @@ -136,8 +136,10 @@ static int __init e800_init(void) goto free_spk_amp_gpio; e800_snd_device = platform_device_alloc("soc-audio", -1); - if (!e800_snd_device) - return -ENOMEM; + if (!e800_snd_device) { + ret = -ENOMEM; + goto free_spk_amp_gpio; + } platform_set_drvdata(e800_snd_device, &e800); ret = platform_device_add(e800_snd_device);