Skip to content

Commit

Permalink
drm/starfive: Propagate bridge error properly
Browse files Browse the repository at this point in the history
Signed-off-by: Emil Renner Berthing <[email protected]>
  • Loading branch information
esmil committed Dec 27, 2021
1 parent dab9495 commit 3355a80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/gpu/drm/starfive/starfive_drm_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ static int starfive_encoder_bind(struct device *dev, struct device *master, void

ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0,
&tmp_panel, &tmp_bridge);
if (ret)
dev_err(dev, "endpoint returns %d\n", ret);
if (ret) {
dev_err_probe(dev, ret, "endpoint returns %d\n", ret);
goto err_bridge;
}

if (tmp_panel)
DRM_INFO("found panel on endpoint\n");
Expand Down

0 comments on commit 3355a80

Please sign in to comment.