diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-09-02 15:47:41 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-06 03:13:04 +0200 |
commit | 4ed0d012c945af332ede1f9853db5184b6c24da1 (patch) | |
tree | 6e51c7d7e8264211c486d1cca579df1797b2ce35 /sound/soc/pxa | |
parent | ASoC: sn95031: Fix the logic to find free channel (diff) | |
download | linux-4ed0d012c945af332ede1f9853db5184b6c24da1.tar.xz linux-4ed0d012c945af332ede1f9853db5184b6c24da1.zip |
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')
-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; |