aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-02-22 09:52:31 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-02-26 23:09:45 -0500
commit724daa4fd65d927e406f2cc0661c9a329876267b (patch)
tree07643dc0fc9b4bb5bebea1d07eb4e5a24523a681 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent231cdafc75434015f3925d6662a1821fcfef16b7 (diff)
drm/ttm: drop persistent_swap_storage from ttm_bo_init and co
Never used as parameter, the only driver actually using this is nouveau and there it is initialized after the BO is initialized. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index c2a4b7215c46..216799ccb545 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -418,8 +418,8 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
418 amdgpu_ttm_placement_from_domain(bo, domain); 418 amdgpu_ttm_placement_from_domain(bo, domain);
419 419
420 r = ttm_bo_init_reserved(&adev->mman.bdev, &bo->tbo, size, type, 420 r = ttm_bo_init_reserved(&adev->mman.bdev, &bo->tbo, size, type,
421 &bo->placement, page_align, &ctx, NULL, 421 &bo->placement, page_align, &ctx, acc_size,
422 acc_size, sg, resv, &amdgpu_ttm_bo_destroy); 422 sg, resv, &amdgpu_ttm_bo_destroy);
423 if (unlikely(r != 0)) 423 if (unlikely(r != 0))
424 return r; 424 return r;
425 425