diff options
| author | Christian König <[email protected]> | 2018-02-22 14:52:31 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-02-27 04:09:45 +0000 |
| commit | 724daa4fd65d927e406f2cc0661c9a329876267b (patch) | |
| tree | 07643dc0fc9b4bb5bebea1d07eb4e5a24523a681 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/ttm: drop ttm->dummy_read_page (diff) | |
| download | kernel-724daa4fd65d927e406f2cc0661c9a329876267b.tar.gz kernel-724daa4fd65d927e406f2cc0661c9a329876267b.zip | |
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 <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 |
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, amdgpu_ttm_placement_from_domain(bo, domain); r = ttm_bo_init_reserved(&adev->mman.bdev, &bo->tbo, size, type, - &bo->placement, page_align, &ctx, NULL, - acc_size, sg, resv, &amdgpu_ttm_bo_destroy); + &bo->placement, page_align, &ctx, acc_size, + sg, resv, &amdgpu_ttm_bo_destroy); if (unlikely(r != 0)) return r; |
