Skip to content

Commit d3b4075

Browse files
committed
drm/msm/dp: 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 DP's platform_device. Use correct lifetime for devm_drm_bridge_add() call. Fixes: 61a72d5 ("drm/msm/dp: switch to devm_drm_bridge_add()") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/562203/ Link: https://lore.kernel.org/r/20231011214705.375738-4-dmitry.baryshkov@linaro.org
1 parent eedf9af commit d3b4075

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/msm/dp/dp_drm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ int dp_bridge_init(struct msm_dp *dp_display, struct drm_device *dev,
307307
DRM_BRIDGE_OP_MODES;
308308
}
309309

310-
rc = devm_drm_bridge_add(&dp_display->pdev->dev, bridge);
310+
rc = devm_drm_bridge_add(dev->dev, bridge);
311311
if (rc) {
312312
DRM_ERROR("failed to add bridge, rc=%d\n", rc);
313313

0 commit comments

Comments
 (0)