Message ID | 20141128131425.GA23622@developer (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 28 November 2014 at 18:44, Eduardo Valentin <edubezval@gmail.com> wrote: > Well, I wouldn't say unfortunately, but fortunately! :-) +1 :) > However, I would prefer, at least to what comes to deferring, to update > the drivers altogether with the inclusion of the check in cpu cooling. > This way the change in behavior is atomic, in terms of commit changes. > > Viresh, if you don't mind, I will merge your patch 04/26 into this one. Sure, go ahead.
diff --git a/drivers/thermal/samsung/exynos_thermal_common.c b/drivers/thermal/samsung/exynos_thermal_common.c index 3f5ad25..f84975e 100644 --- a/drivers/thermal/samsung/exynos_thermal_common.c +++ b/drivers/thermal/samsung/exynos_thermal_common.c @@ -373,7 +373,7 @@ int exynos_register_thermal(struct thermal_sensor_conf *sensor_conf) 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]); goto err_unregister; } th_zone->cool_dev_size++;