Skip to content

Commit eedf9af

Browse files
committed
drm/msm/hdmi: 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 HDMI's platform_device. Use correct lifetime for devm_drm_bridge_add() call. Fixes: 719093a ("drm/msm/hdmi: switch to devm_drm_bridge_add()") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/562201/ Link: https://lore.kernel.org/r/20231011214705.375738-3-dmitry.baryshkov@linaro.org
1 parent bf3f01d commit eedf9af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/msm/hdmi/hdmi_bridge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ int msm_hdmi_bridge_init(struct hdmi *hdmi)
331331
DRM_BRIDGE_OP_DETECT |
332332
DRM_BRIDGE_OP_EDID;
333333

334-
ret = devm_drm_bridge_add(&hdmi->pdev->dev, bridge);
334+
ret = devm_drm_bridge_add(hdmi->dev->dev, bridge);
335335
if (ret)
336336
return ret;
337337

0 commit comments

Comments
 (0)