drm/amdgpu: Remove redundant .ras_late_init initialization in some ras blocks
authoryipechai <YiPeng.Chai@amd.com>
Tue, 15 Feb 2022 06:38:13 +0000 (14:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Feb 2022 20:59:05 +0000 (15:59 -0500)
commit418abce203fc2e936bf8c7632a9a429e861f6283
tree2af7cd6a0eca02b9ab927fcbad7a98c455459f2e
parent867e24ca4945249baf34ea07ae6b27ca927210a1
drm/amdgpu: Remove redundant .ras_late_init initialization in some ras blocks

1. Define amdgpu_ras_block_late_init_default in amdgpu_ras.c as
   .ras_late_init common function, which is called when
   .ras_late_init of ras block isn't initialized.
2. Remove the code of using amdgpu_ras_block_late_init to
   initialize .ras_late_init in 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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c
drivers/gpu/drm/amd/amdgpu/mca_v3_0.c