Browse Source

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>
isee-imx_3.14.28.y
Shengjiu Wang 6 years ago
committed by Nitin Garg
parent
commit
707c153bf2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      sound/soc/fsl/imx-cs42888.c

+ 1
- 1
sound/soc/fsl/imx-cs42888.c View File

@ -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;


Loading…
Cancel
Save