thermal: core: Drop the .set_trip_hyst() thermal zone operation
[linux-2.6-microblaze.git] / drivers / thermal / thermal_sysfs.c
index 39dbbda..7c02d35 100644 (file)
@@ -174,18 +174,11 @@ trip_point_hyst_store(struct device *dev, struct device_attribute *attr,
        trip = &tz->trips[trip_id];
 
        if (hyst != trip->hysteresis) {
-               if (tz->ops.set_trip_hyst) {
-                       ret = tz->ops.set_trip_hyst(tz, trip_id, hyst);
-                       if (ret)
-                               goto unlock;
-               }
-
                trip->hysteresis = hyst;
 
                thermal_zone_trip_updated(tz, trip);
        }
 
-unlock:
        mutex_unlock(&tz->lock);
 
        return ret ? ret : count;