[PATCH v2 32/41] drm/msm/mdp4: remove now-redundant call to drm_connector_attach_encoder()

Luca Ceresoli
2026-04-23T09:26:14Z

drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 7 -------
1 file changed, 7 deletions(-)

diff --git a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c
index 809ca191e9de..7726edb0d4ed 100644
--- a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c
+++ b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c
@@ -232,13 +232,6 @@ static int mdp4_modeset_init_intf(struct mdp4_kms *mdp4_kms,
return PTR_ERR(connector);
}

- ret = drm_connector_attach_encoder(connector, encoder);
- if (ret) {
- DRM_DEV_ERROR(dev->dev, "failed to attach LVDS connector: %d\n", ret);
-
- return ret;
- }
-
break;
case DRM_MODE_ENCODER_TMDS:
encoder = mdp4_dtv_encoder_init(dev);

--
2.53.0