summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Lai <b04597@freescale.com>2010-07-21 19:41:40 +0800
committerJustin Waters <justin.waters@timesys.com>2010-12-17 12:10:54 -0500
commit5a312f97a168475787230a17ae69661033ef9ee7 (patch)
treed6a665935d86090c9b6614547ef46b99f1b8b9a7
parent0d3d728e32c8f9101c551fd27ef21ec8ac98a792 (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> (cherry picked from commit b096820108269d4d67b44fd8652c475263ee8a18)
-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: