drm/msm/dp: use correct lifetime device for devm_drm_bridge_add
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 11 Oct 2023 21:47:05 +0000 (00:47 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 11 Oct 2023 23:42:10 +0000 (02:42 +0300)
commitd3b4075b173f033387b614297bb4d998cf22c8bd
tree3bb6a4d2f95b29743d8780c24d3721be087743b2
parenteedf9af581b65dea53fb04d44ad081d10274d21f
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: 61a72d5efce5 ("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
drivers/gpu/drm/msm/dp/dp_drm.c