From 0021de74f111176f5b249232bfbc8fa12913bc9d Mon Sep 17 00:00:00 2001 From: William Lai Date: Wed, 21 Jul 2010 19:41:40 +0800 Subject: [PATCH] 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 (cherry picked from commit b096820108269d4d67b44fd8652c475263ee8a18) --- sound/soc/imx/imx-3stack-cs42888.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/imx/imx-3stack-cs42888.c b/sound/soc/imx/imx-3stack-cs42888.c index 181dd11a65f..935a4e54402 100644 --- a/sound/soc/imx/imx-3stack-cs42888.c +++ b/sound/soc/imx/imx-3stack-cs42888.c @@ -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: