summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2019-01-29 13:10:48 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:50:46 +0800
commit1492f5267f3c0f11381c705d2f8151fe769cc0fa (patch)
tree0734b29816818f27760f8623887eba178479c4c2
parent51bf2fec17ab436cc49a40468221a9bbc128b965 (diff)
ASoC: imx-cs42888: Use -EPROBE_DEFER instead of -EINVAL
Use -EPROBE_DEFER instead of -EINVAL for the resource is not ready in time Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
-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 8793fa034d6d..6adf247531ce 100644
--- a/sound/soc/fsl/imx-cs42888.c
+++ b/sound/soc/fsl/imx-cs42888.c
@@ -373,7 +373,7 @@ static int imx_cs42888_probe(struct platform_device *pdev)
codec_dev = of_find_i2c_device_by_node(codec_np);
if (!codec_dev || !codec_dev->dev.driver) {
dev_err(&pdev->dev, "failed to find codec platform device\n");
- ret = -EINVAL;
+ ret = -EPROBE_DEFER;
goto fail;
}