summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorWilliam Lai <b04597@freescale.com>2010-07-21 19:41:40 +0800
committerWilliam Lai <b04597@freescale.com>2010-07-21 19:41:40 +0800
commitb096820108269d4d67b44fd8652c475263ee8a18 (patch)
treed6a665935d86090c9b6614547ef46b99f1b8b9a7 /sound
parent24c1d799767732a7d654c1acd526c63acbe397fe (diff)
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/imx/imx-3stack-cs42888.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/imx/imx-3stack-cs42888.c b/sound/soc/imx/imx-3stack-cs42888.c
index 181dd11a65f7..935a4e544029 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: