Subject: [PATCH 37/37] drm/mxsfb/lcdif: enable bridge hotplug

From: Luca Ceresoli <[email-masked]>
Date: Tue, 19 May 2026 12:37:54 +0200

Switch to the new drmm_bridge_connector_init() so the drm_bridge_connector
will handle bridge hotplugging.

Signed-off-by: Luca Ceresoli <[email-masked]>
---
 drivers/gpu/drm/mxsfb/lcdif_drv.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/mxsfb/lcdif_drv.c b/drivers/gpu/drm/mxsfb/lcdif_drv.c
index e2173c4d6fc2..0a7c197dbc1e 100644
--- a/drivers/gpu/drm/mxsfb/lcdif_drv.c
+++ b/drivers/gpu/drm/mxsfb/lcdif_drv.c
@@ -58,7 +58,7 @@ static int lcdif_attach_bridge(struct lcdif_drm_private *lcdif)
 		struct of_endpoint of_ep;
 		struct drm_bridge *bridge;
 		struct drm_encoder *encoder;
-		struct drm_connector *connector;
+		struct drm_bridge_connector *bridge_connector;
 		int ret;
 
 		if (!of_device_is_available(remote))
@@ -94,9 +94,9 @@ static int lcdif_attach_bridge(struct lcdif_drm_private *lcdif)
 					     "Failed to attach bridge for endpoint%u\n",
 					     of_ep.id);
 
-		connector = drm_bridge_connector_init(lcdif->drm, encoder);
-		if (IS_ERR(connector))
-			return dev_err_probe(dev, PTR_ERR(connector),
+		bridge_connector = drmm_bridge_connector_init(lcdif->drm, encoder);
+		if (IS_ERR(bridge_connector))
+			return dev_err_probe(dev, PTR_ERR(bridge_connector),
 					     "Failed to init bridge_connector for endpoint%u\n",
 					     of_ep.id);
 	}

-- 
2.54.0