diff options
Diffstat (limited to 'sound')
-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) | |||
306 | &snd_soc_raumfeld_connector); | 306 | &snd_soc_raumfeld_connector); |
307 | 307 | ||
308 | ret = platform_device_add(raumfeld_audio_device); | 308 | ret = platform_device_add(raumfeld_audio_device); |
309 | if (ret < 0) | 309 | if (ret < 0) { |
310 | platform_device_put(raumfeld_audio_device); | ||
310 | return ret; | 311 | return ret; |
312 | } | ||
311 | 313 | ||
312 | raumfeld_enable_audio(true); | 314 | raumfeld_enable_audio(true); |
313 | return 0; | 315 | return 0; |