summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRong Dian <b38775@freescale.com>2012-08-27 11:27:06 +0800
committerTerry Lv <r65388@freescale.com>2012-08-27 16:51:23 +0800
commit4cc44cebd1ddbd15e8ccac53260bd886d10e248b (patch)
tree17a04e7c9a28e3b9b34bb34623d0a982eedaec03 /drivers
parent60bad509d7060775a370d70e843ab12f6b50c5c5 (diff)
ENGR00221450 imx6 thermal: add sys_close() in cooling device
add sys_close() to close opened file in cooling device Signed-off-by: Rong Dian <b38775@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mxc/thermal/cooling.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mxc/thermal/cooling.c b/drivers/mxc/thermal/cooling.c
index 31188f01ffab..7019d9949c8a 100644
--- a/drivers/mxc/thermal/cooling.c
+++ b/drivers/mxc/thermal/cooling.c
@@ -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);