ASoC: Add missing platform_device_put in raumfeld_audio_init error path
Subsystems (3)
PATCH 1/1 ASoC: Add missing platform_device_put in raumfeld_audio_init error path
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/pxa/raumfeld.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
sound/soc/pxa/raumfeld.c +3 -1
@@ -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 ;
Signature · 1 line
1.7.4.1
Quoted 22 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>--- sound/soc/pxa/raumfeld.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)sound/soc/pxa/raumfeld.c +3
-2@@ -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 ; --
Quoted 2 lines
1.7.4.1
Acked-by Liam Girdwood <[email protected]>
Mark Brown
AppliedQuoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>
Applied, thanks.
Quoted 4 lines · Mark Brown
Quoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>Applied, thanks.
Feel free to add my Acked-by as well, if it's not too late.
Thanks,
Daniel
Quoted 1 line · Daniel Mack
Feel free to add my Acked-by as well, if it's not too late.
Done.