drm/amdgpu: switch to mmhub ras callback for ras fini
authorHawking Zhang <Hawking.Zhang@amd.com>
Wed, 28 Apr 2021 15:10:36 +0000 (23:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 May 2021 22:06:43 +0000 (18:06 -0400)
invoke callback function for mmhub ras fini

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: John Clements <John.Clements@amd.com>
Reviewed-by: Dennis Li <Dennis.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c

index 697ab26c94346f3dcc33a08f3b6d1affab936d95..a129ecc738693fae4fccbce34eb0bdd7c20263bb 100644 (file)
@@ -473,7 +473,7 @@ void amdgpu_gmc_ras_fini(struct amdgpu_device *adev)
 
        if (adev->mmhub.ras_funcs &&
            adev->mmhub.ras_funcs->ras_fini)
-               amdgpu_mmhub_ras_fini(adev);
+               adev->mmhub.ras_funcs->ras_fini(adev);
 
        if (adev->gmc.xgmi.ras_funcs &&
            adev->gmc.xgmi.ras_funcs->ras_fini)