summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/msm/edp
diff options
context:
space:
mode:
authorHai Li <hali@codeaurora.org>2015-04-23 21:13:21 +0300
committerRob Clark <robdclark@gmail.com>2015-05-14 23:56:42 +0300
commit6f6b287968681f660e151c202765da9f58d3dcba (patch)
tree7a5cfbf66ce196ca999e853ba6b6d6629e49b184 /drivers/gpu/drm/msm/edp
parent13f15565f7887a028b3442bbd763ff6d07b48479 (diff)
downloadlinux-6f6b287968681f660e151c202765da9f58d3dcba.tar.xz
drm/msm: Attach assigned encoder to eDP and DSI connectors
drm_mode_connector_attach_encoder() function call is missing during eDP and DSI connector initialization. As a result, no encoder is returned by DRM_IOCTL_MODE_GETCONNECTOR system call. This change is to fix this issue. Signed-off-by: Hai Li <hali@codeaurora.org>
Diffstat (limited to 'drivers/gpu/drm/msm/edp')
-rw-r--r--drivers/gpu/drm/msm/edp/edp_connector.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/edp/edp_connector.c b/drivers/gpu/drm/msm/edp/edp_connector.c
index d8812e84da54..b4d1b469862a 100644
--- a/drivers/gpu/drm/msm/edp/edp_connector.c
+++ b/drivers/gpu/drm/msm/edp/edp_connector.c
@@ -151,6 +151,8 @@ struct drm_connector *msm_edp_connector_init(struct msm_edp *edp)
if (ret)
goto fail;
+ drm_mode_connector_attach_encoder(connector, edp->encoder);
+
return connector;
fail: