drm/amdkfd: call amdgpu_amdkfd_get_hive_id directly
No need to use a function pointer because the implementation is not ASIC-specific. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:

committed by
Alex Deucher

parent
817154c1a2
commit
332f6e1e98
@@ -712,8 +712,7 @@ bool kgd2kfd_device_init(struct kfd_dev *kfd,
|
||||
goto kfd_doorbell_error;
|
||||
}
|
||||
|
||||
if (kfd->kfd2kgd->get_hive_id)
|
||||
kfd->hive_id = kfd->kfd2kgd->get_hive_id(kfd->kgd);
|
||||
kfd->hive_id = amdgpu_amdkfd_get_hive_id(kfd->kgd);
|
||||
|
||||
kfd->unique_id = amdgpu_amdkfd_get_unique_id(kfd->kgd);
|
||||
|
||||
|
Reference in New Issue
Block a user