Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit aa8e65df authored by yipechai's avatar yipechai Committed by Alex Deucher
Browse files

drm/amdgpu: Remove redundant calls of amdgpu_ras_block_late_fini in hdp ras block


Remove redundant calls of amdgpu_ras_block_late_fini in hdp ras block.

Signed-off-by: default avataryipechai <YiPeng.Chai@amd.com>
Reviewed-by: default avatarTao Zhou <tao.zhou1@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f148c143
Branches
Tags
No related merge requests found
...@@ -26,7 +26,5 @@ ...@@ -26,7 +26,5 @@
void amdgpu_hdp_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block) void amdgpu_hdp_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block)
{ {
if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__HDP) &&
ras_block)
amdgpu_ras_block_late_fini(adev, ras_block);
} }
...@@ -44,5 +44,4 @@ struct amdgpu_hdp { ...@@ -44,5 +44,4 @@ struct amdgpu_hdp {
}; };
int amdgpu_hdp_ras_late_init(struct amdgpu_device *adev, struct ras_common_if *ras_block); int amdgpu_hdp_ras_late_init(struct amdgpu_device *adev, struct ras_common_if *ras_block);
void amdgpu_hdp_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block);
#endif /* __AMDGPU_HDP_H__ */ #endif /* __AMDGPU_HDP_H__ */
...@@ -166,7 +166,7 @@ struct amdgpu_hdp_ras hdp_v4_0_ras = { ...@@ -166,7 +166,7 @@ struct amdgpu_hdp_ras hdp_v4_0_ras = {
.type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE, .type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE,
}, },
.hw_ops = &hdp_v4_0_ras_hw_ops, .hw_ops = &hdp_v4_0_ras_hw_ops,
.ras_fini = amdgpu_hdp_ras_fini, .ras_fini = amdgpu_ras_block_late_fini,
}, },
}; };
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment