Skip to content

Commit

Permalink
ASoC: fsl-asoc-card: Defer probe when fail to find codec device
Browse files Browse the repository at this point in the history
Defer probe when fail to find codec device, because the codec
device maybe probed later than machine driver.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1591251930-4111-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Shengjiu Wang authored and Mark Brown committed Jun 4, 2020
1 parent d605cbb commit e396dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/fsl/fsl-asoc-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)

if (!fsl_asoc_card_is_ac97(priv) && !codec_dev) {
dev_err(&pdev->dev, "failed to find codec device\n");
ret = -EINVAL;
ret = -EPROBE_DEFER;
goto asrc_fail;
}

Expand Down

0 comments on commit e396dec

Please sign in to comment.