From c43c341752c40e11544c79b6367046f85f6f65cc Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Tue, 29 Jan 2019 14:41:39 +0800 Subject: ASoC: fsl_sai: Support -EPROBE_DEFER Support -EPROBE_DEFER for the resource is not ready in time Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_sai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound/soc/fsl/fsl_sai.c') diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 079ac1f17c83..361ea7126fb9 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -1383,7 +1383,7 @@ static int fsl_sai_probe(struct platform_device *pdev) "bus", base, &fsl_sai_regmap_config); /* Compatible with old DTB cases */ - if (IS_ERR(sai->regmap)) + if (IS_ERR(sai->regmap) && PTR_ERR(sai->regmap) != -EPROBE_DEFER) sai->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "sai", base, &fsl_sai_regmap_config); if (IS_ERR(sai->regmap)) { -- cgit v1.2.3