thermal: call correct function in crit_show
Diwakar Tundlam [Wed, 3 Apr 2013 00:53:08 +0000 (17:53 -0700)]
Change-Id: Ibd821693644d94445d90c50fa284f85bfd0178d1
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/215929
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>

drivers/thermal/thermal_sys.c

index b4bdcea..f983feb 100644 (file)
@@ -940,7 +940,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;