From 872642edaf4228040473349ae0ee872264fa67f7 Mon Sep 17 00:00:00 2001 From: Kenneth Feng Date: Fri, 8 Jul 2022 16:31:22 +0800 Subject: [PATCH] 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 Reviewed-by: Evan Quan Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 8 +++----- 1 file 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 0328bc12ca218..0370482dd52bc 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); } -- 2.30.2