Skip to content

Commit 1a70ca8

Browse files
microhobbysuperna9999
authored andcommitted
drm/bridge: lt8912b: return EPROBE_DEFER if bridge is not found
Returns EPROBE_DEFER when of_drm_find_bridge() fails, this is consistent with what all the other DRM bridge drivers are doing and this is required since the bridge might not be there when the driver is probed and this should not be a fatal failure. Cc: <[email protected]> Fixes: 30e2ae9 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge") Signed-off-by: Matheus Castello <[email protected]> Signed-off-by: Francesco Dolcini <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Reviewed-by: Andrzej Hajda <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent ba98413 commit 1a70ca8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/bridge/lontium-lt8912b.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,8 @@ static int lt8912_parse_dt(struct lt8912 *lt)
676676

677677
lt->hdmi_port = of_drm_find_bridge(port_node);
678678
if (!lt->hdmi_port) {
679-
dev_err(lt->dev, "%s: Failed to get hdmi port\n", __func__);
680-
ret = -ENODEV;
679+
ret = -EPROBE_DEFER;
680+
dev_err_probe(lt->dev, ret, "%s: Failed to get hdmi port\n", __func__);
681681
goto err_free_host_node;
682682
}
683683

0 commit comments

Comments
 (0)