drm/amd/pm: drop the thermal_controller_type check
drop the thermal_controller_type check since it's not relevant. Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
c028d66e6e
commit
872642edaf
@@ -1106,11 +1106,9 @@ int smu_v13_0_enable_thermal_alert(struct smu_context *smu)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
if (smu->smu_table.thermal_controller_type) {
|
||||
ret = amdgpu_irq_get(smu->adev, &smu->irq_source, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
ret = amdgpu_irq_get(smu->adev, &smu->irq_source, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return smu_v13_0_process_pending_interrupt(smu);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user