diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c index 00e0ce10862f..f7669dc6909b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | |||
@@ -79,13 +79,13 @@ static int amdgpu_gtt_mgr_fini(struct ttm_mem_type_manager *man) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | /** | 81 | /** |
82 | * amdgpu_gtt_mgr_is_allocated - Check if mem has address space | 82 | * amdgpu_gtt_mgr_has_gart_addr - Check if mem has address space |
83 | * | 83 | * |
84 | * @mem: the mem object to check | 84 | * @mem: the mem object to check |
85 | * | 85 | * |
86 | * Check if a mem object has already address space allocated. | 86 | * Check if a mem object has already address space allocated. |
87 | */ | 87 | */ |
88 | bool amdgpu_gtt_mgr_is_allocated(struct ttm_mem_reg *mem) | 88 | bool amdgpu_gtt_mgr_has_gart_addr(struct ttm_mem_reg *mem) |
89 | { | 89 | { |
90 | struct drm_mm_node *node = mem->mm_node; | 90 | struct drm_mm_node *node = mem->mm_node; |
91 | 91 | ||
@@ -114,7 +114,7 @@ static int amdgpu_gtt_mgr_alloc(struct ttm_mem_type_manager *man, | |||
114 | unsigned long fpfn, lpfn; | 114 | unsigned long fpfn, lpfn; |
115 | int r; | 115 | int r; |
116 | 116 | ||
117 | if (amdgpu_gtt_mgr_is_allocated(mem)) | 117 | if (amdgpu_gtt_mgr_has_gart_addr(mem)) |
118 | return 0; | 118 | return 0; |
119 | 119 | ||
120 | if (place) | 120 | if (place) |