]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd: Remove superfluous assignment for `adev->mes.adev`
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 3 Jan 2023 18:20:56 +0000 (12:20 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Jan 2023 22:02:18 +0000 (17:02 -0500)
`amdgpu_mes_init` already sets `adev->mes.adev`, so there is no need
to also set it in the IP specific versions.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v10_1.c
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c

index 7848b9de79ce9b29f911d37d9c098c00503446c0..2e2062636d5f6882f8794b4cb242e0bc36590424 100644 (file)
@@ -924,7 +924,6 @@ static int mes_v10_1_sw_init(void *handle)
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
        int pipe, r;
 
-       adev->mes.adev = adev;
        adev->mes.funcs = &mes_v10_1_funcs;
        adev->mes.kiq_hw_init = &mes_v10_1_kiq_hw_init;
 
index e0c394d1ed4e7bd1b28dbfc2dd0e1e8fbdc09b23..bfa305079bfcf84d38da73a701ae3316fcbb9568 100644 (file)
@@ -1017,7 +1017,6 @@ static int mes_v11_0_sw_init(void *handle)
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
        int pipe, r;
 
-       adev->mes.adev = adev;
        adev->mes.funcs = &mes_v11_0_funcs;
        adev->mes.kiq_hw_init = &mes_v11_0_kiq_hw_init;
        adev->mes.kiq_hw_fini = &mes_v11_0_kiq_hw_fini;