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/bridge: dw-hdmi: 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 by using the drm_bridge::next_bridge pointer.

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

+3 -4
+3 -4
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
··· 132 132 struct dw_hdmi { 133 133 struct drm_connector connector; 134 134 struct drm_bridge bridge; 135 - struct drm_bridge *next_bridge; 136 135 137 136 unsigned int version; 138 137 ··· 2911 2912 struct dw_hdmi *hdmi = bridge->driver_private; 2912 2913 2913 2914 if (flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR) 2914 - return drm_bridge_attach(encoder, hdmi->next_bridge, 2915 + return drm_bridge_attach(encoder, hdmi->bridge.next_bridge, 2915 2916 bridge, flags); 2916 2917 2917 2918 return dw_hdmi_connector_create(hdmi); ··· 3317 3318 if (!remote) 3318 3319 return -ENODEV; 3319 3320 3320 - hdmi->next_bridge = of_drm_find_bridge(remote); 3321 + hdmi->bridge.next_bridge = of_drm_find_and_get_bridge(remote); 3321 3322 of_node_put(remote); 3322 - if (!hdmi->next_bridge) 3323 + if (!hdmi->bridge.next_bridge) 3323 3324 return -EPROBE_DEFER; 3324 3325 3325 3326 return 0;