aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/amd/amdgpu/psp_v11_0.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
index 9217af00bc8d..3f3fac2d50cd 100644
--- a/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
@@ -306,11 +306,8 @@ static int psp_v11_0_ring_stop(struct psp_context *psp,
306 enum psp_ring_type ring_type) 306 enum psp_ring_type ring_type)
307{ 307{
308 int ret = 0; 308 int ret = 0;
309 struct psp_ring *ring;
310 struct amdgpu_device *adev = psp->adev; 309 struct amdgpu_device *adev = psp->adev;
311 310
312 ring = &psp->km_ring;
313
314 /* Write the ring destroy command to C2PMSG_64 */ 311 /* Write the ring destroy command to C2PMSG_64 */
315 WREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_64, GFX_CTRL_CMD_ID_DESTROY_RINGS); 312 WREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_64, GFX_CTRL_CMD_ID_DESTROY_RINGS);
316 313