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_drm_of_find_bridge() which puts the bridge
reference on remove or on probe failure.

Signed-off-by: Luca Ceresoli <[email protected]>
---
 drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c 
b/drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c
index 001b3543924a..8eb73ca25eaa 100644
--- a/drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c
+++ b/drivers/gpu/drm/renesas/rcar-du/rcar_lvds.c
@@ -740,7 +740,7 @@ static int rcar_lvds_parse_dt_companion(struct rcar_lvds 
*lvds)
                goto done;
        }
 
-       lvds->companion = of_drm_find_bridge(companion);
+       lvds->companion = devm_drm_of_find_bridge(dev, companion);
        if (!lvds->companion) {
                ret = -EPROBE_DEFER;
                goto done;

-- 
2.51.1

Reply via email to