[PATCH v2 39/41] drm/imx: remove now-redundant call to drm_connector_attach_encoder()

Luca Ceresoli
2026-04-23T11:58:57Z

drivers/gpu/drm/imx/dc/dc-kms.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/imx/dc/dc-kms.c b/drivers/gpu/drm/imx/dc/dc-kms.c
index 2b18aa37a4a8..0f8cfaf4c4d1 100644
--- a/drivers/gpu/drm/imx/dc/dc-kms.c
+++ b/drivers/gpu/drm/imx/dc/dc-kms.c
@@ -81,13 +81,7 @@ static int dc_kms_init_encoder_per_crtc(struct dc_drm_device *dc_drm,
return ret;
}

- ret = drm_connector_attach_encoder(connector, encoder);
- if (ret)
- dev_err(dev,
- "failed to attach encoder to connector for CRTC%u: %d\n",
- crtc->index, ret);
-
- return ret;
+ return 0;
}

int dc_kms_init(struct dc_drm_device *dc_drm)
--
2.53.0