aboutsummaryrefslogtreecommitdiff
path: root/drivers/thermal/samsung/exynos_thermal_common.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@linaro.org>2015-06-29 10:37:23 -0700
committerKevin Hilman <khilman@linaro.org>2015-06-29 10:37:23 -0700
commit590e935df0c94b2d7a4584bb26906666176a6133 (patch)
treebb004c31d277423c7eb0f6bd2c0c1e9d8428e9f2 /drivers/thermal/samsung/exynos_thermal_common.c
parent774b195c03ac44c0dbc4e81a3f194779692ce3bd (diff)
parent91760bceff1f3f5860ff49c14194567f972352e6 (diff)
Diffstat (limited to 'drivers/thermal/samsung/exynos_thermal_common.c')
-rw-r--r--drivers/thermal/samsung/exynos_thermal_common.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/thermal/samsung/exynos_thermal_common.c b/drivers/thermal/samsung/exynos_thermal_common.c
index b6be572704a4..7c97db1cf829 100644
--- a/drivers/thermal/samsung/exynos_thermal_common.c
+++ b/drivers/thermal/samsung/exynos_thermal_common.c
@@ -163,7 +163,7 @@ static int exynos_bind(struct thermal_zone_device *thermal,
case MONITOR_ZONE:
case WARN_ZONE:
if (thermal_zone_bind_cooling_device(thermal, i, cdev,
- level, 0)) {
+ level, 0, THERMAL_WEIGHT_DEFAULT)) {
dev_err(data->dev,
"error unbinding cdev inst=%d\n", i);
ret = -EINVAL;
@@ -371,9 +371,11 @@ int exynos_register_thermal(struct thermal_sensor_conf *sensor_conf)
th_zone->cool_dev[th_zone->cool_dev_size] =
cpufreq_cooling_register(&mask_val);
if (IS_ERR(th_zone->cool_dev[th_zone->cool_dev_size])) {
- dev_err(sensor_conf->dev,
- "Failed to register cpufreq cooling device\n");
- ret = -EINVAL;
+ ret = PTR_ERR(th_zone->cool_dev[th_zone->cool_dev_size]);
+ if (ret != -EPROBE_DEFER)
+ dev_err(sensor_conf->dev,
+ "Failed to register cpufreq cooling device: %d\n",
+ ret);
goto err_unregister;
}
th_zone->cool_dev_size++;