]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm: rcar-du: lvds: convert to of_drm_find_and_get_bridge()
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Fri, 9 Jan 2026 10:02:55 +0000 (11:02 +0100)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Wed, 21 Jan 2026 12:59:56 +0000 (13:59 +0100)
commit95d628c9e4738c070ba780488efbab894e583646
treed7bfd9560d98198313a25d5b7b6f7ad529d1ece9
parent2db0d298f22d685e0c9f7f66ab6470f12a0255b6
drm: rcar-du: lvds: 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, and ensure it
is put when done.

Since the companion bridge pointer is used by .atomic_enable, putting its
reference in the remove function would be dangerous. Use .destroy to put it
on final deallocation.

Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20260109-drm-bridge-alloc-getput-drm_of_find_bridge-3-v2-6-8d7a3dbacdf4@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c