aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Feng <[email protected]>2022-07-08 16:31:22 +0800
committerAlex Deucher <[email protected]>2022-07-08 18:25:50 -0400
commit872642edaf4228040473349ae0ee872264fa67f7 (patch)
tree753868ca20e8bc63844e831a44773a0503bfb335
parentc028d66e6ec471fc24f70204768f43594a6a8b4a (diff)
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 <[email protected]> Reviewed-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
index 0328bc12ca21..0370482dd52b 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
@@ -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);
}