diff options
| author | Kent Russell <[email protected]> | 2017-08-08 07:58:01 -0400 | 
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-08-15 14:46:16 -0400 | 
| commit | 6d7d9c5aa212d069b5271cd6bb8a9e05a3e1b986 (patch) | |
| tree | a9faeee8e7dc447dc8f51fb72e75cdc26dc8c99b /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | 4aa5b92fd48f88f5877d84d5e4bbb53aeb3a843c (diff) | |
drm/amdgpu: Fix preferred typo
Change "prefered" to "preferred"
Signed-off-by: Kent Russell <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 16f31cbd9147..6e72fe7901ec 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -391,13 +391,13 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev,  	}  	INIT_LIST_HEAD(&bo->shadow_list);  	INIT_LIST_HEAD(&bo->va); -	bo->prefered_domains = domain & (AMDGPU_GEM_DOMAIN_VRAM | +	bo->preferred_domains = domain & (AMDGPU_GEM_DOMAIN_VRAM |  					 AMDGPU_GEM_DOMAIN_GTT |  					 AMDGPU_GEM_DOMAIN_CPU |  					 AMDGPU_GEM_DOMAIN_GDS |  					 AMDGPU_GEM_DOMAIN_GWS |  					 AMDGPU_GEM_DOMAIN_OA); -	bo->allowed_domains = bo->prefered_domains; +	bo->allowed_domains = bo->preferred_domains;  	if (!kernel && bo->allowed_domains == AMDGPU_GEM_DOMAIN_VRAM)  		bo->allowed_domains |= AMDGPU_GEM_DOMAIN_GTT; @@ -606,7 +606,7 @@ int amdgpu_bo_validate(struct amdgpu_bo *bo)  	if (bo->pin_count)  		return 0; -	domain = bo->prefered_domains; +	domain = bo->preferred_domains;  retry:  	amdgpu_ttm_placement_from_domain(bo, domain); |