aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-09-15 08:10:48 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-09-28 16:16:20 -0400
commit1927ffc0c19d7d42f775604f6984933bbb0d419b (patch)
treeef490717700f0a8dae7cd9cb410ec9fa8890c088
parentbb990bb09235a3cc38fd4600d48c7bfb7a0a167c (diff)
drm/amdgpu: remove unused member from struct amdgpu_bo
Not used in a while. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h2
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 9d79e4ba0213..869d6ebc2ea3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -446,8 +446,6 @@ struct amdgpu_bo_va {
446#define AMDGPU_GEM_DOMAIN_MAX 0x3 446#define AMDGPU_GEM_DOMAIN_MAX 0x3
447 447
448struct amdgpu_bo { 448struct amdgpu_bo {
449 /* Protected by gem.mutex */
450 struct list_head list;
451 /* Protected by tbo.reserved */ 449 /* Protected by tbo.reserved */
452 u32 prefered_domains; 450 u32 prefered_domains;
453 u32 allowed_domains; 451 u32 allowed_domains;
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 9b80dfedcb4a..171131f360cd 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -352,7 +352,6 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev,
352 return r; 352 return r;
353 } 353 }
354 bo->adev = adev; 354 bo->adev = adev;
355 INIT_LIST_HEAD(&bo->list);
356 INIT_LIST_HEAD(&bo->shadow_list); 355 INIT_LIST_HEAD(&bo->shadow_list);
357 INIT_LIST_HEAD(&bo->va); 356 INIT_LIST_HEAD(&bo->va);
358 bo->prefered_domains = domain & (AMDGPU_GEM_DOMAIN_VRAM | 357 bo->prefered_domains = domain & (AMDGPU_GEM_DOMAIN_VRAM |