Skip to content

Commit

Permalink
drm/msm/dp: use correct lifetime device for devm_drm_bridge_add
Browse files Browse the repository at this point in the history
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 <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/562203/
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
lumag committed Oct 11, 2023
1 parent eedf9af commit d3b4075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/msm/dp/dp_drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ int dp_bridge_init(struct msm_dp *dp_display, struct drm_device *dev,
DRM_BRIDGE_OP_MODES;
}

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

Expand Down

0 comments on commit d3b4075

Please sign in to comment.