Commit 23a3eb10 authored by Amit Daniel Kachhap's avatar Amit Daniel Kachhap Committed by Eduardo Valentin

thermal: exynos: Return success even if no cooling data supplied

This patch removes the error return in the bind/unbind routine
as the platform may not register any cpufreq cooling data.
Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
Acked-by: default avatarJonghwa Lee <jonghwa3.lee@samsung.com>
Acked-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: default avatarAmit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
parent d58f0a6d
...@@ -132,7 +132,7 @@ static int exynos_bind(struct thermal_zone_device *thermal, ...@@ -132,7 +132,7 @@ static int exynos_bind(struct thermal_zone_device *thermal,
tab_size = data->cooling_data.freq_clip_count; tab_size = data->cooling_data.freq_clip_count;
if (tab_ptr == NULL || tab_size == 0) if (tab_ptr == NULL || tab_size == 0)
return -EINVAL; return 0;
/* find the cooling device registered*/ /* find the cooling device registered*/
for (i = 0; i < th_zone->cool_dev_size; i++) for (i = 0; i < th_zone->cool_dev_size; i++)
...@@ -181,7 +181,7 @@ static int exynos_unbind(struct thermal_zone_device *thermal, ...@@ -181,7 +181,7 @@ static int exynos_unbind(struct thermal_zone_device *thermal,
tab_size = data->cooling_data.freq_clip_count; tab_size = data->cooling_data.freq_clip_count;
if (tab_size == 0) if (tab_size == 0)
return -EINVAL; return 0;
/* find the cooling device registered*/ /* find the cooling device registered*/
for (i = 0; i < th_zone->cool_dev_size; i++) for (i = 0; i < th_zone->cool_dev_size; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment