From: Soomin Kim Date: Thu, 28 Jul 2016 10:56:03 +0000 (+0900) Subject: [COMMON] thermal: gpu_cooling: Fix the ECT parsing bug X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b770a08fd62532a8ec9abc9bc8c6bc39c5845dd6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: gpu_cooling: Fix the ECT parsing bug Change-Id: I8e1d9ae678e25986b76ddd655adfac3c626e2c70 Signed-off-by: Soomin Kim --- 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: