Skip to content

Commit bf3f01d

Browse files
committed
drm/msm/dsi: use correct lifetime device for devm_drm_bridge_add
The lifetime of the created drm_bridge is attached to the drm_device rather than the DSI's platform_device. Use correct lifetime for devm_drm_bridge_add() call. Fixes: 5f403fd ("drm/msm/dsi: switch to devm_drm_bridge_add()") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/562200/ Link: https://lore.kernel.org/r/20231011214705.375738-2-dmitry.baryshkov@linaro.org
1 parent 44d8c4d commit bf3f01d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/msm/dsi/dsi_manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ int msm_dsi_manager_bridge_init(struct msm_dsi *msm_dsi)
485485
bridge = &dsi_bridge->base;
486486
bridge->funcs = &dsi_mgr_bridge_funcs;
487487

488-
ret = devm_drm_bridge_add(&msm_dsi->pdev->dev, bridge);
488+
ret = devm_drm_bridge_add(msm_dsi->dev->dev, bridge);
489489
if (ret)
490490
return ret;
491491

0 commit comments

Comments
 (0)