From 505f74fa00def29117548c930dca6c8cfba0ad74 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 2 Sep 2011 21:47:41 +0800 Subject: [PATCH] --- yaml --- r: 270561 b: refs/heads/master c: 4ed0d012c945af332ede1f9853db5184b6c24da1 h: refs/heads/master i: 270559: 10209336d828bff2c2bde004fce293892ba93d24 v: v3 --- [refs] | 2 +- trunk/sound/soc/pxa/raumfeld.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 40c9567b722e..79f8edfc11b1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7b4615ba8108649ed30804450eb054925e347ad3 +refs/heads/master: 4ed0d012c945af332ede1f9853db5184b6c24da1 diff --git a/trunk/sound/soc/pxa/raumfeld.c b/trunk/sound/soc/pxa/raumfeld.c index 1a591f1ebfbd..b899a3bc8f42 100644 --- a/trunk/sound/soc/pxa/raumfeld.c +++ b/trunk/sound/soc/pxa/raumfeld.c @@ -306,8 +306,10 @@ static int __init raumfeld_audio_init(void) &snd_soc_raumfeld_connector); ret = platform_device_add(raumfeld_audio_device); - if (ret < 0) + if (ret < 0) { + platform_device_put(raumfeld_audio_device); return ret; + } raumfeld_enable_audio(true); return 0;