Skip to content

Commit

Permalink
drm/msm/mdss: handle -EPROBE_DEFER for cpu-cfg icc path
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Lypak <[email protected]>
  • Loading branch information
vldly authored and barni2000 committed Jul 25, 2024
1 parent ec4db89 commit 2067cf7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/gpu/drm/msm/msm_mdss.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ static int msm_mdss_parse_data_bus_icc_path(struct device *dev,
if (IS_ERR_OR_NULL(path0))
return PTR_ERR_OR_ZERO(path0);

reg_bus_path = devm_of_icc_get(dev, "cpu-cfg");
if (PTR_ERR(reg_bus_path) == -EPROBE_DEFER)
return -EPROBE_DEFER;

msm_mdss->mdp_path[0] = path0;
msm_mdss->num_mdp_paths = 1;

Expand All @@ -68,7 +72,6 @@ static int msm_mdss_parse_data_bus_icc_path(struct device *dev,
msm_mdss->num_mdp_paths++;
}

reg_bus_path = of_icc_get(dev, "cpu-cfg");
if (!IS_ERR_OR_NULL(reg_bus_path))
msm_mdss->reg_bus_path = reg_bus_path;

Expand Down

0 comments on commit 2067cf7

Please sign in to comment.