From b770a08fd62532a8ec9abc9bc8c6bc39c5845dd6 Mon Sep 17 00:00:00 2001 From: Soomin Kim Date: Thu, 28 Jul 2016 19:56:03 +0900 Subject: [PATCH] [COMMON] thermal: gpu_cooling: Fix the ECT parsing bug Change-Id: I8e1d9ae678e25986b76ddd655adfac3c626e2c70 Signed-off-by: Soomin Kim --- drivers/thermal/gpu_cooling.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/gpu_cooling.c b/drivers/thermal/gpu_cooling.c index be042fb1b14c..dd802f4af840 100644 --- a/drivers/thermal/gpu_cooling.c +++ b/drivers/thermal/gpu_cooling.c @@ -323,8 +323,8 @@ static int build_static_power_table(struct gpufreq_cooling_device *gpufreq_cdev) return -EINVAL; } - volt_temp_param = ect_gen_param_get_table(gen_block, "DTM_GPU_VOLT_TEMP"); - asv_param = ect_gen_param_get_table(gen_block, "DTM_GPU_ASV"); + volt_temp_param = ect_gen_param_get_table(gen_block, "DTM_G3D_VOLT_TEMP"); + asv_param = ect_gen_param_get_table(gen_block, "DTM_G3D_ASV"); if (volt_temp_param && asv_param) { gpufreq_cdev->leakage_volt_size = volt_temp_param->num_of_row - 1; @@ -376,6 +376,8 @@ static int build_static_power_table(struct gpufreq_cooling_device *gpufreq_cdev) } } + return 0; + free_asv_coeff: kfree(gpufreq_cdev->asv_coeff); free_leakage_coeff: -- 2.20.1