diff options
| author | Huang Rui <[email protected]> | 2018-06-28 06:38:21 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-07-05 21:39:54 +0000 |
| commit | f8ddb39a15100076884a625e97c91f3578c686f5 (patch) | |
| tree | bbc75659b0b2db11fea3cb0098e60016549372ad /drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | |
| parent | drm/radeon: add SPDX identifier and clarify license (diff) | |
| download | kernel-f8ddb39a15100076884a625e97c91f3578c686f5.tar.gz kernel-f8ddb39a15100076884a625e97c91f3578c686f5.zip | |
drm/amdgpu: fix the wrong type of gem object creation
We still use legacy type of gem_object_create, it should update to ttm_bo_type
now.
Signed-off-by: Huang Rui <[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_fb.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c index bc5fd8ebab5d..811c62927c38 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c @@ -146,7 +146,7 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev, AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED | AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS | AMDGPU_GEM_CREATE_VRAM_CLEARED, - true, NULL, &gobj); + ttm_bo_type_kernel, NULL, &gobj); if (ret) { pr_err("failed to allocate framebuffer (%d)\n", aligned_size); return -ENOMEM; |
