ASoC: fsl_sai: Support -EPROBE_DEFER
Support -EPROBE_DEFER for the resource is not ready in time Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
This commit is contained in:
parent
e138a5378b
commit
c43c341752
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue