aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/samsung/exynos_tmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c
index fbeedc072cc2..933cd80a6bc5 100644
--- a/drivers/thermal/samsung/exynos_tmu.c
+++ b/drivers/thermal/samsung/exynos_tmu.c
@@ -716,7 +716,7 @@ static int exynos_get_temp(void *p, long *temp)
716{ 716{
717 struct exynos_tmu_data *data = p; 717 struct exynos_tmu_data *data = p;
718 718
719 if (!data) 719 if (!data || !data->tmu_read)
720 return -EINVAL; 720 return -EINVAL;
721 721
722 mutex_lock(&data->lock); 722 mutex_lock(&data->lock);