diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-09-02 21:47:41 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-05 18:13:04 -0700 |
commit | 4ed0d012c945af332ede1f9853db5184b6c24da1 (patch) | |
tree | 6e51c7d7e8264211c486d1cca579df1797b2ce35 /sound/soc | |
parent | 7b4615ba8108649ed30804450eb054925e347ad3 (diff) | |
download | linux-4ed0d012c945af332ede1f9853db5184b6c24da1.tar.bz2 |
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')
-rw-r--r-- | sound/soc/pxa/raumfeld.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/pxa/raumfeld.c b/sound/soc/pxa/raumfeld.c index 1a591f1ebfbd..b899a3bc8f42 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; |