Commit 4cc44ceb authored by Rong Dian's avatar Rong Dian Committed by Terry Lv

ENGR00221450 imx6 thermal: add sys_close() in cooling device

add sys_close() to close opened file in cooling device
Signed-off-by: default avatarRong Dian <b38775@freescale.com>
parent 60bad509
......@@ -178,6 +178,7 @@ int anatop_thermal_cpu_hotplug(bool cpu_on)
sys_write(fd, (char *)"1", MAX_CPU_ONLINE_LEN);
cpu_mask &= ~(0x1 << cpu);
ret = 0;
sys_close(fd);
break;
}
sys_close(fd);
......@@ -199,6 +200,7 @@ int anatop_thermal_cpu_hotplug(bool cpu_on)
sys_write(fd, (char *)"0", MAX_CPU_ONLINE_LEN);
cpu_mask |= 0x1 << cpu;
ret = 0;
sys_close(fd);
break;
}
sys_close(fd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment