summaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa/raumfeld.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-09-02 21:47:41 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-05 18:13:04 -0700
commit4ed0d012c945af332ede1f9853db5184b6c24da1 (patch)
tree6e51c7d7e8264211c486d1cca579df1797b2ce35 /sound/soc/pxa/raumfeld.c
parent7b4615ba8108649ed30804450eb054925e347ad3 (diff)
ASoC: Add missing platform_device_put in raumfeld_audio_init error path
Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Daniel Mack <zonque@gmail.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/pxa/raumfeld.c')
-rw-r--r--sound/soc/pxa/raumfeld.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/pxa/raumfeld.c b/sound/soc/pxa/raumfeld.c
index 1a591f1ebfb..b899a3bc8f4 100644
--- a/sound/soc/pxa/raumfeld.c
+++ b/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;