Upgrade to 4.4.50-rt62
[kvmfornfv.git] / kernel / drivers / thermal / thermal_hwmon.c
index 06fd2ed..705b0ca 100644 (file)
@@ -98,7 +98,7 @@ temp_crit_show(struct device *dev, struct device_attribute *attr, char *buf)
        int temperature;
        int ret;
 
-       ret = tz->ops->get_trip_temp(tz, 0, &temperature);
+       ret = tz->ops->get_crit_temp(tz, &temperature);
        if (ret)
                return ret;