drm/amdgpu: Modify .ras_fini function pointer parameter

Modify .ras_fini function pointer parameter so that
we can remove redundant intermediate calls in some
ras blocks.

Signed-off-by: yipechai <YiPeng.Chai@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
yipechai
2022-02-17 14:52:20 +08:00
committed by Alex Deucher
parent b51759661e
commit 01d468d9a4
19 changed files with 24 additions and 24 deletions

View File

@@ -162,7 +162,7 @@ late_fini:
return r;
}
void amdgpu_umc_ras_fini(struct amdgpu_device *adev)
void amdgpu_umc_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block)
{
if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC) &&
adev->umc.ras_if)