diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2019-01-29 13:10:48 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:50:46 +0800 |
commit | 1492f5267f3c0f11381c705d2f8151fe769cc0fa (patch) | |
tree | 0734b29816818f27760f8623887eba178479c4c2 | |
parent | 51bf2fec17ab436cc49a40468221a9bbc128b965 (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.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 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; } |