From: Luca Ceresoli Date: Thu, 2 Apr 2026 16:27:18 +0000 (+0200) Subject: drm/kmb/dsi: convert to of_drm_find_and_get_bridge() X-Git-Tag: v7.2-rc1~141^2~26^2~121 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=abbe7f8144d532354723dd1c5ab0daf41aa9706e;p=thirdparty%2Flinux.git drm/kmb/dsi: convert to of_drm_find_and_get_bridge() of_drm_find_bridge() is deprecated. Move to its replacement of_drm_find_and_get_bridge() which gets a bridge reference. This driver has global variables for the DSI host and DSI device, and code to allocate them on probe but no code to free them when on remove. So it does not at all support removal, and not even multiple instances. For this reason putting the reference would be pointless here. Reviewed-by: Louis Chauvet Reviewed-by: Linus Walleij Link: https://patch.msgid.link/20260402-drm-bridge-alloc-getput-drm_of_find_bridge-4-v4-2-421781c8c061@bootlin.com Signed-off-by: Luca Ceresoli --- diff --git a/drivers/gpu/drm/kmb/kmb_dsi.c b/drivers/gpu/drm/kmb/kmb_dsi.c index aeb2f9f98f231..febca939bd010 100644 --- a/drivers/gpu/drm/kmb/kmb_dsi.c +++ b/drivers/gpu/drm/kmb/kmb_dsi.c @@ -251,7 +251,7 @@ int kmb_dsi_host_bridge_init(struct device *dev) return -EINVAL; } /* Locate drm bridge from the hdmi encoder DT node */ - adv_bridge = of_drm_find_bridge(encoder_node); + adv_bridge = of_drm_find_and_get_bridge(encoder_node); of_node_put(dsi_out); of_node_put(encoder_node); if (!adv_bridge) {