mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-07-08 17:56:11 +00:00
ENGR00125396 ALSA CS42888: Remove the platform device from the bus
Use the platform_device_unregister instead of platform_device_put, to remove the device from the audio subsystem, when it fails to reigster the cs42888 card. Signed-off-by: William Lai<b04597@freescale.com> (cherry picked from commit b096820108269d4d67b44fd8652c475263ee8a18)
This commit is contained in:
@@ -389,7 +389,7 @@ static int __init imx_3stack_asoc_init(void)
|
||||
if (0 == ret && snd_soc_card_imx_3stack.codec != NULL)
|
||||
goto exit;
|
||||
|
||||
platform_device_put(imx_3stack_snd_device);
|
||||
platform_device_unregister(imx_3stack_snd_device);
|
||||
err_device_alloc:
|
||||
platform_driver_unregister(&imx_3stack_cs42888_driver);
|
||||
exit:
|
||||
|
||||
Reference in New Issue
Block a user