diff options
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_drv.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 5d5632f5265b..4d9edead01ac 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | |||
@@ -769,10 +769,7 @@ static int vmw_driver_open(struct drm_device *dev, struct drm_file *file_priv) | |||
769 | goto out_no_tfile; | 769 | goto out_no_tfile; |
770 | 770 | ||
771 | file_priv->driver_priv = vmw_fp; | 771 | file_priv->driver_priv = vmw_fp; |
772 | 772 | dev_priv->bdev.dev_mapping = dev->dev_mapping; | |
773 | if (unlikely(dev_priv->bdev.dev_mapping == NULL)) | ||
774 | dev_priv->bdev.dev_mapping = | ||
775 | file_priv->filp->f_path.dentry->d_inode->i_mapping; | ||
776 | 773 | ||
777 | return 0; | 774 | return 0; |
778 | 775 | ||