aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/qxl
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r--drivers/gpu/drm/qxl/qxl_object.c3
-rw-r--r--drivers/gpu/drm/qxl/qxl_ttm.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_object.c b/drivers/gpu/drm/qxl/qxl_object.c
index 8691c76c5ef0..7e20c21b0879 100644
--- a/drivers/gpu/drm/qxl/qxl_object.c
+++ b/drivers/gpu/drm/qxl/qxl_object.c
@@ -82,8 +82,7 @@ int qxl_bo_create(struct qxl_device *qdev,
82 enum ttm_bo_type type; 82 enum ttm_bo_type type;
83 int r; 83 int r;
84 84
85 if (unlikely(qdev->mman.bdev.dev_mapping == NULL)) 85 qdev->mman.bdev.dev_mapping = qdev->ddev->anon_inode->i_mapping;
86 qdev->mman.bdev.dev_mapping = qdev->ddev->dev_mapping;
87 if (kernel) 86 if (kernel)
88 type = ttm_bo_type_kernel; 87 type = ttm_bo_type_kernel;
89 else 88 else
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c
index c7e7e6590c2b..78cbc40a8efb 100644
--- a/drivers/gpu/drm/qxl/qxl_ttm.c
+++ b/drivers/gpu/drm/qxl/qxl_ttm.c
@@ -518,8 +518,7 @@ int qxl_ttm_init(struct qxl_device *qdev)
518 ((unsigned)num_io_pages * PAGE_SIZE) / (1024 * 1024)); 518 ((unsigned)num_io_pages * PAGE_SIZE) / (1024 * 1024));
519 DRM_INFO("qxl: %uM of Surface memory size\n", 519 DRM_INFO("qxl: %uM of Surface memory size\n",
520 (unsigned)qdev->surfaceram_size / (1024 * 1024)); 520 (unsigned)qdev->surfaceram_size / (1024 * 1024));
521 if (unlikely(qdev->mman.bdev.dev_mapping == NULL)) 521 qdev->mman.bdev.dev_mapping = qdev->ddev->anon_inode->i_mapping;
522 qdev->mman.bdev.dev_mapping = qdev->ddev->dev_mapping;
523 r = qxl_ttm_debugfs_init(qdev); 522 r = qxl_ttm_debugfs_init(qdev);
524 if (r) { 523 if (r) {
525 DRM_ERROR("Failed to init debugfs\n"); 524 DRM_ERROR("Failed to init debugfs\n");