Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/arcpgu: 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 it when done.

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20251216-drm-bridge-alloc-getput-drm_of_find_bridge-v3-5-b5165fab8058@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

+2 -3
+2 -3
drivers/gpu/drm/tiny/arcpgu.c
··· 308 308 return ret; 309 309 310 310 if (encoder_node) { 311 - struct drm_bridge *bridge; 312 - 313 311 /* Locate drm bridge from the hdmi encoder DT node */ 314 - bridge = of_drm_find_bridge(encoder_node); 312 + struct drm_bridge *bridge __free(drm_bridge_put) = 313 + of_drm_find_and_get_bridge(encoder_node); 315 314 if (!bridge) 316 315 return -EPROBE_DEFER; 317 316