Commit bb50bba9 authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/pm: drop unneeded thermal_controller_type check

As there is actually no direct dependence between them.
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cde83d47
......@@ -1076,10 +1076,7 @@ int smu_v13_0_set_power_limit(struct smu_context *smu,
int smu_v13_0_enable_thermal_alert(struct smu_context *smu)
{
if (smu->smu_table.thermal_controller_type)
return amdgpu_irq_get(smu->adev, &smu->irq_source, 0);
return 0;
return amdgpu_irq_get(smu->adev, &smu->irq_source, 0);
}
int smu_v13_0_disable_thermal_alert(struct smu_context *smu)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment