]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/kmb/dsi: convert to of_drm_find_and_get_bridge()
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Thu, 2 Apr 2026 16:27:18 +0000 (18:27 +0200)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Thu, 9 Apr 2026 12:38:08 +0000 (14:38 +0200)
commitabbe7f8144d532354723dd1c5ab0daf41aa9706e
tree8ef68d44640421d74db08c7720c64bebe7fea5bf
parentb943aefce6ad0c6119cacd6adcc67225b2699e7f
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 <louis.chauvet@bootlin.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
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 <luca.ceresoli@bootlin.com>
drivers/gpu/drm/kmb/kmb_dsi.c