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: thc63lvd1024: 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-2-v2-4-8bad3ef90b9f@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

+3 -4
+3 -4
drivers/gpu/drm/bridge/thc63lvd1024.c
··· 32 32 struct gpio_desc *oe; 33 33 34 34 struct drm_bridge bridge; 35 - struct drm_bridge *next; 36 35 37 36 struct drm_bridge_timings timings; 38 37 }; ··· 47 48 { 48 49 struct thc63_dev *thc63 = to_thc63(bridge); 49 50 50 - return drm_bridge_attach(encoder, thc63->next, bridge, flags); 51 + return drm_bridge_attach(encoder, thc63->bridge.next_bridge, bridge, flags); 51 52 } 52 53 53 54 static enum drm_mode_status thc63_mode_valid(struct drm_bridge *bridge, ··· 131 132 return -ENODEV; 132 133 } 133 134 134 - thc63->next = of_drm_find_bridge(remote); 135 + thc63->bridge.next_bridge = of_drm_find_and_get_bridge(remote); 135 136 of_node_put(remote); 136 - if (!thc63->next) 137 + if (!thc63->bridge.next_bridge) 137 138 return -EPROBE_DEFER; 138 139 139 140 endpoint = of_graph_get_endpoint_by_regs(thc63->dev->of_node,