projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b4615b
)
ASoC: Add missing platform_device_put in raumfeld_audio_init error path
author
Axel Lin
<axel.lin@gmail.com>
Fri, 2 Sep 2011 13:47:41 +0000
(21:47 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Tue, 6 Sep 2011 01:13:04 +0000
(18:13 -0700)
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>
sound/soc/pxa/raumfeld.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/pxa/raumfeld.c
b/sound/soc/pxa/raumfeld.c
index 1a591f1ebfbd9431f89559be28421d8defde585c..b899a3bc8f42356cce6e9c6f1629bf0402f5706d 100644
(file)
--- 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;