drm/msm/hdmi: use correct lifetime device for devm_drm_bridge_add
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 11 Oct 2023 21:47:04 +0000 (00:47 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 11 Oct 2023 23:42:10 +0000 (02:42 +0300)
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: 719093a67c7f ("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
drivers/gpu/drm/msm/hdmi/hdmi_bridge.c

index 0b7a6a5..f5e0147 100644 (file)
@@ -331,7 +331,7 @@ int msm_hdmi_bridge_init(struct hdmi *hdmi)
                DRM_BRIDGE_OP_DETECT |
                DRM_BRIDGE_OP_EDID;
 
-       ret = devm_drm_bridge_add(&hdmi->pdev->dev, bridge);
+       ret = devm_drm_bridge_add(hdmi->dev->dev, bridge);
        if (ret)
                return ret;