diff options
author | Shengjiu Wang <shengjiu.wang@freescale.com> | 2014-12-24 16:08:45 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:49:53 +0800 |
commit | 36316acb3f1d712f331f3da6c84fb86155198f30 (patch) | |
tree | bb4bb4bd5ffa7b2fe33b21f09e4f475a0676dd10 /sound/soc/fsl/imx-cs42888.c | |
parent | e2a81a7a37a1190f661ab163c2d3956f81dc84f5 (diff) |
MLK-10055-1: ASoC: imx-cs42888: when codec probe failed, alsa return RETRY error.
If there is no codec device, the machine driver will not register the
card. then alsa will not return RETRY error. update the error handling
for machine driver.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit 01ffd8e5e828d20214a196e64b981c9fd94c913e)
Diffstat (limited to 'sound/soc/fsl/imx-cs42888.c')
-rw-r--r-- | sound/soc/fsl/imx-cs42888.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-cs42888.c b/sound/soc/fsl/imx-cs42888.c index 68eaaaa9cfcd..4153d394aa61 100644 --- a/sound/soc/fsl/imx-cs42888.c +++ b/sound/soc/fsl/imx-cs42888.c @@ -236,7 +236,7 @@ static int imx_cs42888_probe(struct platform_device *pdev) goto fail; } codec_dev = of_find_i2c_device_by_node(codec_np); - if (!codec_dev) { + if (!codec_dev || !codec_dev->dev.driver) { dev_err(&pdev->dev, "failed to find codec platform device\n"); ret = -EINVAL; goto fail; |