diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h index 64f197bbc866943166bdae8a0f74946851ce5d27..9a946f0e015c57432d1d860dbdc612f10d761f5b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h @@ -436,7 +436,6 @@ struct amdgpu_gfx { /* IP reg dump */ uint32_t *ip_dump; - uint32_t reg_count; }; struct amdgpu_gfx_ras_reg_entry { diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 536287ddd2ec137d14c0f21face6bb1ed9759f2c..3171ed5e5af3d82f068e74de8a2ab2c7974d0549 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -4592,10 +4592,8 @@ static void gfx_v10_0_alloc_dump_mem(struct amdgpu_device *adev) if (ptr == NULL) { DRM_ERROR("Failed to allocate memory for IP Dump\n"); adev->gfx.ip_dump = NULL; - adev->gfx.reg_count = 0; } else { adev->gfx.ip_dump = ptr; - adev->gfx.reg_count = reg_count; } }