summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2011-03-23 02:33:46 -0400
committerLen Brown <len.brown@intel.com>2011-03-23 02:33:46 -0400
commit797b10a07069e153d41aedb4ae8e76660279e2ee (patch)
tree385b331211ebb63d6c012383693f3884ec2229cb /drivers
parent8a9026d2e91b2c46744396222b0e878b2622c567 (diff)
parent4fdfbe8506fa236f3c4cc915b24e70f84a6f768a (diff)
Merge branch 'bugfix-thermal' into release
Diffstat (limited to 'drivers')
-rw-r--r--drivers/thermal/thermal_sys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
index 713b7ea4a60..fc6f2a5bde0 100644
--- a/drivers/thermal/thermal_sys.c
+++ b/drivers/thermal/thermal_sys.c
@@ -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);