Skip to content

Commit

Permalink
thermal: exynos: Return success even if no cooling data supplied
Browse files Browse the repository at this point in the history
This patch removes the error return in the bind/unbind routine
as the platform may not register any cpufreq cooling data.

Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
  • Loading branch information
Amit Daniel Kachhap authored and Eduardo Valentin committed Aug 13, 2013
1 parent d58f0a6 commit 23a3eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/thermal/samsung/exynos_thermal_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static int exynos_bind(struct thermal_zone_device *thermal,
tab_size = data->cooling_data.freq_clip_count;

if (tab_ptr == NULL || tab_size == 0)
return -EINVAL;
return 0;

/* find the cooling device registered*/
for (i = 0; i < th_zone->cool_dev_size; i++)
Expand Down Expand Up @@ -181,7 +181,7 @@ static int exynos_unbind(struct thermal_zone_device *thermal,
tab_size = data->cooling_data.freq_clip_count;

if (tab_size == 0)
return -EINVAL;
return 0;

/* find the cooling device registered*/
for (i = 0; i < th_zone->cool_dev_size; i++)
Expand Down

0 comments on commit 23a3eb1

Please sign in to comment.