Skip to content

Commit 4e358b5

Browse files
lucaceresolisuperna9999
authored andcommitted
drm/bridge: ti-sn65dsi83: use dev_err_probe when failing to get panel bridge
When devm_drm_of_get_bridge() fails, the probe fails silently. Use dev_err_probe() instead to log an error or report the deferral reason, whichever is applicable. Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Luca Ceresoli <[email protected]> Link: https://lore.kernel.org/r/20241217-ti-sn65dsi83-dev_err_probe-v1-1-3fdce386400c@bootlin.com Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/20241217-ti-sn65dsi83-dev_err_probe-v1-1-3fdce386400c@bootlin.com
1 parent 6a8d72b commit 4e358b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/bridge/ti-sn65dsi83.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ static int sn65dsi83_parse_dt(struct sn65dsi83 *ctx, enum sn65dsi83_model model)
606606

607607
panel_bridge = devm_drm_of_get_bridge(dev, dev->of_node, 2, 0);
608608
if (IS_ERR(panel_bridge))
609-
return PTR_ERR(panel_bridge);
609+
return dev_err_probe(dev, PTR_ERR(panel_bridge), "Failed to get panel bridge\n");
610610

611611
ctx->panel_bridge = panel_bridge;
612612

0 commit comments

Comments
 (0)