Commit e78105c8 authored by Mario Limonciello's avatar Mario Limonciello Committed by Alex Deucher

drm/amd: Remove superfluous assignment for `adev->mes.adev`

`amdgpu_mes_init` already sets `adev->mes.adev`, so there is no need
to also set it in the IP specific versions.
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 11e0b006
...@@ -924,7 +924,6 @@ static int mes_v10_1_sw_init(void *handle) ...@@ -924,7 +924,6 @@ static int mes_v10_1_sw_init(void *handle)
struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct amdgpu_device *adev = (struct amdgpu_device *)handle;
int pipe, r; int pipe, r;
adev->mes.adev = adev;
adev->mes.funcs = &mes_v10_1_funcs; adev->mes.funcs = &mes_v10_1_funcs;
adev->mes.kiq_hw_init = &mes_v10_1_kiq_hw_init; adev->mes.kiq_hw_init = &mes_v10_1_kiq_hw_init;
......
...@@ -1017,7 +1017,6 @@ static int mes_v11_0_sw_init(void *handle) ...@@ -1017,7 +1017,6 @@ static int mes_v11_0_sw_init(void *handle)
struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct amdgpu_device *adev = (struct amdgpu_device *)handle;
int pipe, r; int pipe, r;
adev->mes.adev = adev;
adev->mes.funcs = &mes_v11_0_funcs; adev->mes.funcs = &mes_v11_0_funcs;
adev->mes.kiq_hw_init = &mes_v11_0_kiq_hw_init; adev->mes.kiq_hw_init = &mes_v11_0_kiq_hw_init;
adev->mes.kiq_hw_fini = &mes_v11_0_kiq_hw_fini; adev->mes.kiq_hw_fini = &mes_v11_0_kiq_hw_fini;
......
Markdown is supported
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