]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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 03daefa73397fb98b31faca39bf522fe3ec178fa..f3ab1fee60e1bb274f0ee3e79b50437e431ae873 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;
 }