diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2018-10-09 02:22:04 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-10-10 15:49:01 -0400 |
commit | 735f654e5dd1c55d28aa04d49a9b7fcd3d5cccd0 (patch) | |
tree | 21a6da17f3b9c1681d390c7e694dc40eecfeceb0 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | c8963ea4ce1783034e1f9cf0d702fa490eb77836 (diff) |
drm/amdgpu: Remove amdgpu_ucode_fini_bo
The variable clean is unnecessary.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c index 57ed38422089..971549f5833d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |||
@@ -490,22 +490,3 @@ int amdgpu_ucode_init_bo(struct amdgpu_device *adev) | |||
490 | } | 490 | } |
491 | return 0; | 491 | return 0; |
492 | } | 492 | } |
493 | |||
494 | int amdgpu_ucode_fini_bo(struct amdgpu_device *adev) | ||
495 | { | ||
496 | int i; | ||
497 | struct amdgpu_firmware_info *ucode = NULL; | ||
498 | |||
499 | if (!adev->firmware.fw_size) | ||
500 | return 0; | ||
501 | |||
502 | for (i = 0; i < adev->firmware.max_ucodes; i++) { | ||
503 | ucode = &adev->firmware.ucode[i]; | ||
504 | if (ucode->fw) { | ||
505 | ucode->mc_addr = 0; | ||
506 | ucode->kaddr = NULL; | ||
507 | } | ||
508 | } | ||
509 | |||
510 | return 0; | ||
511 | } | ||