diff options
author | Christian König <christian.koenig@amd.com> | 2018-02-16 03:52:51 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-20 14:40:22 -0500 |
commit | c06cc6f7608d70561655d4fc9e3f9144761aa44b (patch) | |
tree | bb6760c9617d2c24e31096bf827f6ca7475e6ead /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 9021d2edd259d992cf8b5b48791ab50829129de7 (diff) |
drm/amdgpu: use drm_gem_private_object_init
We use our own backing store and don't need the shmem file.
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
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.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 512612ec3557..969de54b62da 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -371,11 +371,7 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev, | |||
371 | bo = kzalloc(sizeof(struct amdgpu_bo), GFP_KERNEL); | 371 | bo = kzalloc(sizeof(struct amdgpu_bo), GFP_KERNEL); |
372 | if (bo == NULL) | 372 | if (bo == NULL) |
373 | return -ENOMEM; | 373 | return -ENOMEM; |
374 | r = drm_gem_object_init(adev->ddev, &bo->gem_base, size); | 374 | drm_gem_private_object_init(adev->ddev, &bo->gem_base, size); |
375 | if (unlikely(r)) { | ||
376 | kfree(bo); | ||
377 | return r; | ||
378 | } | ||
379 | INIT_LIST_HEAD(&bo->shadow_list); | 375 | INIT_LIST_HEAD(&bo->shadow_list); |
380 | INIT_LIST_HEAD(&bo->va); | 376 | INIT_LIST_HEAD(&bo->va); |
381 | bo->preferred_domains = domain & (AMDGPU_GEM_DOMAIN_VRAM | | 377 | bo->preferred_domains = domain & (AMDGPU_GEM_DOMAIN_VRAM | |