mirror of https://github.com/torvalds/linux.git
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: 61a72d5efc ("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
This commit is contained in:
parent
eedf9af581
commit
d3b4075b17
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue