diff options
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/samsung/exynos_thermal_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/samsung/exynos_thermal_common.c b/drivers/thermal/samsung/exynos_thermal_common.c index c6eab8c5316f..99318e533c44 100644 --- a/drivers/thermal/samsung/exynos_thermal_common.c +++ b/drivers/thermal/samsung/exynos_thermal_common.c | |||
@@ -132,7 +132,7 @@ static int exynos_bind(struct thermal_zone_device *thermal, | |||
132 | tab_size = data->cooling_data.freq_clip_count; | 132 | tab_size = data->cooling_data.freq_clip_count; |
133 | 133 | ||
134 | if (tab_ptr == NULL || tab_size == 0) | 134 | if (tab_ptr == NULL || tab_size == 0) |
135 | return -EINVAL; | 135 | return 0; |
136 | 136 | ||
137 | /* find the cooling device registered*/ | 137 | /* find the cooling device registered*/ |
138 | for (i = 0; i < th_zone->cool_dev_size; i++) | 138 | for (i = 0; i < th_zone->cool_dev_size; i++) |
@@ -181,7 +181,7 @@ static int exynos_unbind(struct thermal_zone_device *thermal, | |||
181 | tab_size = data->cooling_data.freq_clip_count; | 181 | tab_size = data->cooling_data.freq_clip_count; |
182 | 182 | ||
183 | if (tab_size == 0) | 183 | if (tab_size == 0) |
184 | return -EINVAL; | 184 | return 0; |
185 | 185 | ||
186 | /* find the cooling device registered*/ | 186 | /* find the cooling device registered*/ |
187 | for (i = 0; i < th_zone->cool_dev_size; i++) | 187 | for (i = 0; i < th_zone->cool_dev_size; i++) |