diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2014-12-17 12:58:36 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2014-12-19 10:42:25 +0100 |
commit | fbdccc76da76a6cd4f518f07394d1c9b673f95ef (patch) | |
tree | 4212523e753b2b1c0ead0e297f1a1b1ef5c40db6 /vmwgfx_scrn.c | |
parent | cf63c19e6d86bb798ce78a726a584554989a2f98 (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_scrn.c')
-rw-r--r-- | vmwgfx_scrn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vmwgfx_scrn.c b/vmwgfx_scrn.c index 22ef075..a3b0c6a 100644 --- a/vmwgfx_scrn.c +++ b/vmwgfx_scrn.c @@ -467,6 +467,8 @@ static int vmw_sou_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_screen_object_crtc_funcs); drm_mode_crtc_set_gamma_size(crtc, 256); |