aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2018-06-28 02:38:21 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-07-05 17:39:54 -0400
commitf8ddb39a15100076884a625e97c91f3578c686f5 (patch)
treebbc75659b0b2db11fea3cb0098e60016549372ad /drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
parentda5fd66c0eb79e01501578bfc69352cc5e2e979d (diff)
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 <ray.huang@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_fb.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c2
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,
146 AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED | 146 AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED |
147 AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS | 147 AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS |
148 AMDGPU_GEM_CREATE_VRAM_CLEARED, 148 AMDGPU_GEM_CREATE_VRAM_CLEARED,
149 true, NULL, &gobj); 149 ttm_bo_type_kernel, NULL, &gobj);
150 if (ret) { 150 if (ret) {
151 pr_err("failed to allocate framebuffer (%d)\n", aligned_size); 151 pr_err("failed to allocate framebuffer (%d)\n", aligned_size);
152 return -ENOMEM; 152 return -ENOMEM;