[COMMON] thermal: gpu_cooling: Fix the ECT parsing bug
authorSoomin Kim <sm8326.kim@samsung.com>
Thu, 28 Jul 2016 10:56:03 +0000 (19:56 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:13:15 +0000 (17:13 +0900)
Change-Id: I8e1d9ae678e25986b76ddd655adfac3c626e2c70
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
drivers/thermal/gpu_cooling.c

index be042fb1b14cdbf2f66f7684dcd0ba3633cd6d56..dd802f4af8405596c4938edd5a89d70e0c5bb7b1 100644 (file)
@@ -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: