vmwgfx: Close screen object system
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 9 Nov 2011 09:25:26 +0000 (10:25 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 11 Nov 2011 10:57:29 +0000 (10:57 +0000)
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

index 03daefa..f3ab1fe 100644 (file)
@@ -1323,7 +1323,10 @@ int vmw_kms_close(struct vmw_private *dev_priv)
         * drm_encoder_cleanup which takes the lock we deadlock.
         */
        drm_mode_config_cleanup(dev_priv->dev);
-       vmw_kms_close_legacy_display_system(dev_priv);
+       if (dev_priv->sou_priv)
+               vmw_kms_close_screen_object_display(dev_priv);
+       else
+               vmw_kms_close_legacy_display_system(dev_priv);
        return 0;
 }