diff options
| -rw-r--r-- | drivers/thermal/samsung/exynos_tmu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 58cd68e9bc1c..26a0cb9fb2f4 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c | |||
| @@ -423,10 +423,6 @@ static int exynos4210_tmu_initialize(struct platform_device *pdev) | |||
| 423 | /* Write temperature code for threshold */ | 423 | /* Write temperature code for threshold */ |
| 424 | reference = trips[0].temperature / MCELSIUS; | 424 | reference = trips[0].temperature / MCELSIUS; |
| 425 | threshold_code = temp_to_code(data, reference); | 425 | threshold_code = temp_to_code(data, reference); |
| 426 | if (threshold_code < 0) { | ||
| 427 | ret = threshold_code; | ||
| 428 | goto out; | ||
| 429 | } | ||
| 430 | writeb(threshold_code, data->base + EXYNOS4210_TMU_REG_THRESHOLD_TEMP); | 426 | writeb(threshold_code, data->base + EXYNOS4210_TMU_REG_THRESHOLD_TEMP); |
| 431 | 427 | ||
| 432 | for (i = 0; i < of_thermal_get_ntrips(tz); i++) { | 428 | for (i = 0; i < of_thermal_get_ntrips(tz); i++) { |
| @@ -436,7 +432,7 @@ static int exynos4210_tmu_initialize(struct platform_device *pdev) | |||
| 436 | } | 432 | } |
| 437 | 433 | ||
| 438 | data->tmu_clear_irqs(data); | 434 | data->tmu_clear_irqs(data); |
| 439 | out: | 435 | |
| 440 | return ret; | 436 | return ret; |
| 441 | } | 437 | } |
| 442 | 438 | ||
