thermal: hwmon: Properly report critical temperature in sysfs
[pandora-kernel.git] / drivers / thermal / thermal_sys.c
index f6fb292..d9d2533 100644 (file)
@@ -486,7 +486,7 @@ temp_crit_show(struct device *dev, struct device_attribute *attr,
        long temperature;
        int ret;
 
-       ret = tz->ops->get_trip_temp(tz, 0, &temperature);
+       ret = tz->ops->get_crit_temp(tz, &temperature);
        if (ret)
                return ret;