[PATCH v2 07/26] drm/bridge: ite-it66121: use devm_of_drm_get_bridge() to put the next bridge
Luca Ceresoli
luca.ceresoli at bootlin.com
Fri Nov 28 08:50:17 PST 2025
This driver obtains a bridge pointer from of_drm_find_bridge() in the probe
function and stores it until driver removal. of_drm_find_bridge() is
deprecated. Move to devm_of_drm_get_bridge() which puts the bridge
reference on remove or on probe failure.
Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>
---
drivers/gpu/drm/bridge/ite-it66121.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c
index 0185f61e6e59..b7bcdd24af9e 100644
--- a/drivers/gpu/drm/bridge/ite-it66121.c
+++ b/drivers/gpu/drm/bridge/ite-it66121.c
@@ -1543,7 +1543,7 @@ static int it66121_probe(struct i2c_client *client)
return -EINVAL;
}
- ctx->next_bridge = of_drm_find_bridge(ep);
+ ctx->next_bridge = devm_of_drm_get_bridge(dev, ep);
of_node_put(ep);
if (!ctx->next_bridge) {
dev_dbg(ctx->dev, "Next bridge not found, deferring probe\n");
--
2.51.1
More information about the Linux-mediatek
mailing list