]> Pileus Git - ~andy/linux/blobdiff - drivers/gpu/drm/drm_fops.c
drm: remove dev->vma_count
[~andy/linux] / drivers / gpu / drm / drm_fops.c
index 97ebc828de5b41e490f786a4fde9ba7e67f78eb2..7f2af9aca03895b97c75af76968093a61930b501 100644 (file)
@@ -232,7 +232,6 @@ static int drm_open_helper(struct inode *inode, struct file *filp,
                goto out_put_pid;
        }
 
-       priv->ioctl_count = 0;
        /* for compatibility root is always authenticated */
        priv->always_authenticated = capable(CAP_SYS_ADMIN);
        priv->authenticated = priv->always_authenticated;
@@ -392,8 +391,6 @@ static void drm_legacy_dev_reinit(struct drm_device *dev)
        if (drm_core_check_feature(dev, DRIVER_MODESET))
                return;
 
-       atomic_set(&dev->vma_count, 0);
-
        dev->sigdata.lock = NULL;
 
        dev->context_flag = 0;