From: Kenneth Feng Date: Fri, 8 Jul 2022 08:31:22 +0000 (+0800) Subject: drm/amd/pm: drop the thermal_controller_type check X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=872642edaf4228040473349ae0ee872264fa67f7;p=linux.git 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 --- 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); }