summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2013-12-02 06:04:38 -0800
committerThomas Hellstrom <thellstrom@vmware.com>2013-12-04 12:04:02 -0800
commit6a0a7a9ead2aa18c13dd8f76c5849daf7be1f45a (patch)
treeed31bb3aef3cdc6968eaf03d48a560b98129d0e8 /drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
parent308d17ef9530f236466a31a7855fc3d5176292d4 (diff)
downloadlinux-6a0a7a9ead2aa18c13dd8f76c5849daf7be1f45a.tar.bz2
drm/vmwgfx: Add our connectors to sysfs
Some user-space apps expects to find them there. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
index 31c6ef3641f9..22406c8651ea 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
+++ b/drivers/gpu/drm/vmwgfx/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);