diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-07-11 13:24:53 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-13 14:52:57 -0500 |
commit | 2bce4be03738bc679c61f74fd42dd9e45c9a9959 (patch) | |
tree | b1e18fb7692296002aa8e5393242d4b79ebeb3f7 /drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | |
parent | 3d75a8b689af2824dabe79d250b1ec535341109d (diff) | |
download | op-kernel-dev-2bce4be03738bc679c61f74fd42dd9e45c9a9959.zip op-kernel-dev-2bce4be03738bc679c61f74fd42dd9e45c9a9959.tar.gz |
drm/amdgpu/pp/smu7: drop unused values in smu data structure
use kaddr directly rather than secondary variable.
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c index 9f407c4..0f11c53 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c @@ -422,7 +422,7 @@ int smu7_request_smu_load_fw(struct pp_hwmgr *hwmgr) + UCODE_ID_CP_MEC_JT2_MASK; } - toc = (struct SMU_DRAMData_TOC *)smu_data->header; + toc = (struct SMU_DRAMData_TOC *)smu_data->header_buffer.kaddr; toc->structure_version = 1; PP_ASSERT_WITH_CODE(0 == smu7_populate_single_firmware_entry(hwmgr, @@ -591,7 +591,6 @@ int smu7_init(struct pp_hwmgr *hwmgr) if (r) return -EINVAL; - smu_data->header = smu_data->header_buffer.kaddr; smu_data->header_buffer.mc_addr = mc_addr; if (!hwmgr->not_vf) |