diff options
Diffstat (limited to 'drivers/gpu/drm/bochs/bochs_mm.c')
-rw-r--r-- | drivers/gpu/drm/bochs/bochs_mm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/bochs/bochs_mm.c b/drivers/gpu/drm/bochs/bochs_mm.c index ce6858765b37..f488be55d650 100644 --- a/drivers/gpu/drm/bochs/bochs_mm.c +++ b/drivers/gpu/drm/bochs/bochs_mm.c | |||
@@ -225,7 +225,9 @@ int bochs_mm_init(struct bochs_device *bochs) | |||
225 | 225 | ||
226 | ret = ttm_bo_device_init(&bochs->ttm.bdev, | 226 | ret = ttm_bo_device_init(&bochs->ttm.bdev, |
227 | bochs->ttm.bo_global_ref.ref.object, | 227 | bochs->ttm.bo_global_ref.ref.object, |
228 | &bochs_bo_driver, DRM_FILE_PAGE_OFFSET, | 228 | &bochs_bo_driver, |
229 | bochs->dev->anon_inode->i_mapping, | ||
230 | DRM_FILE_PAGE_OFFSET, | ||
229 | true); | 231 | true); |
230 | if (ret) { | 232 | if (ret) { |
231 | DRM_ERROR("Error initialising bo driver; %d\n", ret); | 233 | DRM_ERROR("Error initialising bo driver; %d\n", ret); |
@@ -359,7 +361,7 @@ static int bochs_bo_create(struct drm_device *dev, int size, int align, | |||
359 | } | 361 | } |
360 | 362 | ||
361 | bochsbo->bo.bdev = &bochs->ttm.bdev; | 363 | bochsbo->bo.bdev = &bochs->ttm.bdev; |
362 | bochsbo->bo.bdev->dev_mapping = dev->dev_mapping; | 364 | bochsbo->bo.bdev->dev_mapping = dev->anon_inode->i_mapping; |
363 | 365 | ||
364 | bochs_ttm_placement(bochsbo, TTM_PL_FLAG_VRAM | TTM_PL_FLAG_SYSTEM); | 366 | bochs_ttm_placement(bochsbo, TTM_PL_FLAG_VRAM | TTM_PL_FLAG_SYSTEM); |
365 | 367 | ||