Commit c06cc6f7 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: use drm_gem_private_object_init

We use our own backing store and don't need the shmem file.

Signed-off-by: default avatarChristian König <>
Acked-by: default avatarDaniel Vetter <>
Signed-off-by: default avatarAlex Deucher <>
parent 9021d2ed
......@@ -371,11 +371,7 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
bo = kzalloc(sizeof(struct amdgpu_bo), GFP_KERNEL);
if (bo == NULL)
return -ENOMEM;
r = drm_gem_object_init(adev->ddev, &bo->gem_base, size);
if (unlikely(r)) {
return r;
drm_gem_private_object_init(adev->ddev, &bo->gem_base, size);
bo->preferred_domains = domain & (AMDGPU_GEM_DOMAIN_VRAM |
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment