OSDN Git Service

thermal: Remove debug or error messages in get_temp() ops
[tomoyo/tomoyo-test1.git] / drivers / thermal / st / st_thermal.c
index 6ed3932..2d30420 100644 (file)
@@ -109,7 +109,6 @@ static int st_thermal_calibration(struct st_thermal_sensor *sensor)
 static int st_thermal_get_temp(struct thermal_zone_device *th, int *temperature)
 {
        struct st_thermal_sensor *sensor = thermal_zone_device_priv(th);
-       struct device *dev = sensor->dev;
        unsigned int temp;
        unsigned int overflow;
        int ret;
@@ -127,8 +126,6 @@ static int st_thermal_get_temp(struct thermal_zone_device *th, int *temperature)
        temp += sensor->cdata->temp_adjust_val;
        temp = mcelsius(temp);
 
-       dev_dbg(dev, "temperature: %d\n", temp);
-
        *temperature = temp;
 
        return 0;