[Freedreno] [PATCH 6/6] drm/malidp: use drm_encoder pointer for drm_writeback_connector
Abhinav Kumar
quic_abhinavk at quicinc.com
Fri Mar 11 01:50:00 UTC 2022
Make changes to malidp driver to start using drm_encoder pointer
for drm_writeback_connector.
Co-developed-by: Kandpal Suraj <suraj.kandpal at intel.com>
Signed-off-by: Abhinav Kumar <quic_abhinavk at quicinc.com>
---
drivers/gpu/drm/arm/malidp_mw.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/arm/malidp_mw.c b/drivers/gpu/drm/arm/malidp_mw.c
index f5847a7..0bd5b78 100644
--- a/drivers/gpu/drm/arm/malidp_mw.c
+++ b/drivers/gpu/drm/arm/malidp_mw.c
@@ -212,7 +212,8 @@ int malidp_mw_connector_init(struct drm_device *drm)
if (!malidp->dev->hw->enable_memwrite)
return 0;
- malidp->mw_connector.encoder.possible_crtcs = 1 << drm_crtc_index(&malidp->crtc);
+ malidp->mw_connector.encoder = kzalloc(sizeof(struct drm_encoder), GFP_KERNEL);
+ malidp->mw_connector.encoder->possible_crtcs = 1 << drm_crtc_index(&malidp->crtc);
drm_connector_helper_add(&malidp->mw_connector.base,
&malidp_mw_connector_helper_funcs);
--
2.7.4
More information about the Freedreno
mailing list