diff options
Diffstat (limited to 'drivers/thermal/of-thermal.c')
-rw-r--r-- | drivers/thermal/of-thermal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index d717f3dab6f1..668fb1bdea9e 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c | |||
@@ -497,6 +497,9 @@ thermal_zone_of_sensor_register(struct device *dev, int sensor_id, void *data, | |||
497 | if (sensor_specs.np == sensor_np && id == sensor_id) { | 497 | if (sensor_specs.np == sensor_np && id == sensor_id) { |
498 | tzd = thermal_zone_of_add_sensor(child, sensor_np, | 498 | tzd = thermal_zone_of_add_sensor(child, sensor_np, |
499 | data, ops); | 499 | data, ops); |
500 | if (!IS_ERR(tzd)) | ||
501 | tzd->ops->set_mode(tzd, THERMAL_DEVICE_ENABLED); | ||
502 | |||
500 | of_node_put(sensor_specs.np); | 503 | of_node_put(sensor_specs.np); |
501 | of_node_put(child); | 504 | of_node_put(child); |
502 | goto exit; | 505 | goto exit; |