pass-hal: tm2: Fix build error for gpu.c 21/137721/1 accepted/tizen/unified/20170711.180634 submit/tizen/20170710.060912
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 7 Jul 2017 07:38:31 +0000 (16:38 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 7 Jul 2017 07:38:31 +0000 (16:38 +0900)
The cd740cbf75cf9 ("pass-hal: tm2: Update TMU HAL functions to use
pass_res_thermal_name") patch has the build errors. So, this patch
fixes the build error on gpu.c.

Change-Id: I92fd86cfbee586638c8d9b2868a85d5ec694c02b
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/gpu/gpu.c

index 3f4d66a..eaa0039 100644 (file)
@@ -193,13 +193,13 @@ static struct pass_resource_dvfs_ops tm2_gpu_dvfs_ops =  {
        .get_load_table = NULL,
 };
 
-static int tm2_tmu_get_temp(char *res_thermal_name);
+static int tm2_tmu_get_temp(char *res_thermal_name)
 {
        char path[PATH_MAX];
        int temp;
        int ret;
 
-       if (!res_name)
+       if (!res_thermal_name)
                return -EINVAL;
 
        snprintf(path, PATH_MAX, "%s%s%s",
@@ -219,7 +219,7 @@ static int tm2_tmu_get_policy(char *res_thermal_name, char *policy)
        char path[PATH_MAX];
        int ret;
 
-       if ((!res_name) || (!policy))
+       if ((!res_thermal_name) || (!policy))
                return -EINVAL;
 
        snprintf(path, PATH_MAX, "%s%s%s",