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:
William Lai
2010-07-21 19:41:40 +08:00
committed by Matt Sealey
parent 3399b82cef
commit 0021de74f1

View File

@@ -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: