Skip to content

Commit

Permalink
Merge branch 'bugfix-thermal' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Len Brown committed Mar 23, 2011
2 parents 8a9026d + 4fdfbe8 commit 797b10a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/thermal/thermal_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,8 @@ thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)

tz->hwmon = NULL;
device_remove_file(hwmon->device, &tz->temp_input.attr);
device_remove_file(hwmon->device, &tz->temp_crit.attr);
if (tz->ops->get_crit_temp)
device_remove_file(hwmon->device, &tz->temp_crit.attr);

mutex_lock(&thermal_list_lock);
list_del(&tz->hwmon_node);
Expand Down

0 comments on commit 797b10a

Please sign in to comment.