diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2017-09-22 06:03:59 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-28 16:03:31 -0400 |
commit | 46967c221fa9d06f4ddf168fbcf16fd9216dd574 (patch) | |
tree | 5941e9c7b5b257cd6575378edc25c56ba4f97166 /drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |
parent | d2f52ac800fec229f2931603e8b7fb9c5ade7aa7 (diff) |
drm/amdgpu: move amdgpu_ucode_init_bo to amdgpu_device.c
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_powerplay.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index 1ad632388c95..c05e5a86e7cc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |||
@@ -174,8 +174,6 @@ static int amdgpu_pp_hw_init(void *handle) | |||
174 | int ret = 0; | 174 | int ret = 0; |
175 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 175 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
176 | 176 | ||
177 | if (adev->pp_enabled && adev->firmware.load_type == AMDGPU_FW_LOAD_SMU) | ||
178 | amdgpu_ucode_init_bo(adev); | ||
179 | 177 | ||
180 | if (adev->powerplay.ip_funcs->hw_init) | 178 | if (adev->powerplay.ip_funcs->hw_init) |
181 | ret = adev->powerplay.ip_funcs->hw_init( | 179 | ret = adev->powerplay.ip_funcs->hw_init( |
@@ -201,9 +199,6 @@ static int amdgpu_pp_hw_fini(void *handle) | |||
201 | ret = adev->powerplay.ip_funcs->hw_fini( | 199 | ret = adev->powerplay.ip_funcs->hw_fini( |
202 | adev->powerplay.pp_handle); | 200 | adev->powerplay.pp_handle); |
203 | 201 | ||
204 | if (adev->pp_enabled && adev->firmware.load_type == AMDGPU_FW_LOAD_SMU) | ||
205 | amdgpu_ucode_fini_bo(adev); | ||
206 | |||
207 | return ret; | 202 | return ret; |
208 | } | 203 | } |
209 | 204 | ||