aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/mca_v3_0.c
diff options
context:
space:
mode:
authoryipechai <[email protected]>2022-02-17 07:40:12 +0000
committerAlex Deucher <[email protected]>2022-03-02 23:40:06 +0000
commit80e0c2cb37b6e00ec0b41c7670e24f72b2d54ceb (patch)
tree5138cf1bc596eb741f5a4f73f4669046dda23de3 /drivers/gpu/drm/amd/amdgpu/mca_v3_0.c
parentdrm/amdgpu: Remove redundant calls of amdgpu_ras_block_late_fini in mca ras b... (diff)
downloadkernel-80e0c2cb37b6e00ec0b41c7670e24f72b2d54ceb.tar.gz
kernel-80e0c2cb37b6e00ec0b41c7670e24f72b2d54ceb.zip
drm/amdgpu: Remove redundant .ras_fini initialization in some ras blocks
1. Define amdgpu_ras_block_late_fini_default in amdgpu_ras.c as .ras_fini common function, which is called when .ras_fini of ras block isn't initialized. 2. Remove the code of using amdgpu_ras_block_late_fini to initialize .ras_fini in ras blocks. Signed-off-by: yipechai <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mca_v3_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mca_v3_0.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mca_v3_0.c b/drivers/gpu/drm/amd/amdgpu/mca_v3_0.c
index 5ce6778a821d..d4bd7d1d2649 100644
--- a/drivers/gpu/drm/amd/amdgpu/mca_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/mca_v3_0.c
@@ -66,7 +66,6 @@ struct amdgpu_mca_ras_block mca_v3_0_mp0_ras = {
},
.hw_ops = &mca_v3_0_mp0_hw_ops,
.ras_block_match = mca_v3_0_ras_block_match,
- .ras_fini = amdgpu_ras_block_late_fini,
},
};
@@ -93,7 +92,6 @@ struct amdgpu_mca_ras_block mca_v3_0_mp1_ras = {
},
.hw_ops = &mca_v3_0_mp1_hw_ops,
.ras_block_match = mca_v3_0_ras_block_match,
- .ras_fini = amdgpu_ras_block_late_fini,
},
};
@@ -120,7 +118,6 @@ struct amdgpu_mca_ras_block mca_v3_0_mpio_ras = {
},
.hw_ops = &mca_v3_0_mpio_hw_ops,
.ras_block_match = mca_v3_0_ras_block_match,
- .ras_fini = amdgpu_ras_block_late_fini,
},
};