diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-10-12 00:47:04 +0300 |
---|---|---|
committer | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-10-12 02:42:10 +0300 |
commit | eedf9af581b65dea53fb04d44ad081d10274d21f (patch) | |
tree | ae0fa7140b025549581314ee8f0f31bd512dbb62 /drivers/gpu/drm/msm/hdmi | |
parent | bf3f01d326ce8c61a670c0db12ffebc83f00c215 (diff) | |
download | linux-eedf9af581b65dea53fb04d44ad081d10274d21f.tar.xz |
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: 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
Diffstat (limited to 'drivers/gpu/drm/msm/hdmi')
-rw-r--r-- | drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c b/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c index 0b7a6a56677e..f5e01471b0b0 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c @@ -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; |