aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/thermal_core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index d9e525cc9c1c..768fb10eb962 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -676,8 +676,12 @@ trip_point_temp_store(struct device *dev, struct device_attribute *attr,
676 return -EINVAL; 676 return -EINVAL;
677 677
678 ret = tz->ops->set_trip_temp(tz, trip, temperature); 678 ret = tz->ops->set_trip_temp(tz, trip, temperature);
679 if (ret)
680 return ret;
679 681
680 return ret ? ret : count; 682 thermal_zone_device_update(tz);
683
684 return count;
681} 685}
682 686
683static ssize_t 687static ssize_t