summaryrefslogtreecommitdiff
path: root/vmwgfx_ldu.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2014-12-17 12:58:36 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2014-12-19 10:42:25 +0100
commitfbdccc76da76a6cd4f518f07394d1c9b673f95ef (patch)
tree4212523e753b2b1c0ead0e297f1a1b1ef5c40db6 /vmwgfx_ldu.c
parentcf63c19e6d86bb798ce78a726a584554989a2f98 (diff)
drm,vmwgfx: Add connectors to sysfs
This is already done upstream, and now that we use the upstream drm sysfs class, it makes sense to do it here as well. Also fix a connector naming bug in our local drm. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Sinclair Yey <syeh@vmware.com>
Diffstat (limited to 'vmwgfx_ldu.c')
-rw-r--r--vmwgfx_ldu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vmwgfx_ldu.c b/vmwgfx_ldu.c
index 9095156..581f35b 100644
--- a/vmwgfx_ldu.c
+++ b/vmwgfx_ldu.c
@@ -372,6 +372,8 @@ static int vmw_ldu_init(struct vmw_private *dev_priv, unsigned unit)
encoder->possible_crtcs = (1 << unit);
encoder->possible_clones = 0;
+ (void) drm_sysfs_connector_add(connector);
+
drm_crtc_init(dev, crtc, &vmw_legacy_crtc_funcs);
drm_mode_crtc_set_gamma_size(crtc, 256);