summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@freescale.com>2014-12-24 16:08:45 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-01-15 21:18:52 -0600
commit707c153bf225f98a38193f392674eef31280a20a (patch)
tree2915bf5aa5bdf8995ca2c8f7b6181efd017a1659 /sound
parent656bd08a7d24341b823b946bfe6d2b22ba5173a4 (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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/imx-cs42888.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-cs42888.c b/sound/soc/fsl/imx-cs42888.c
index 168abd85c5d8..7b0047ae230f 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;