aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/thermal/thermal_sys.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
index 0675687c6de8..6472e7e9f969 100644
--- a/drivers/thermal/thermal_sys.c
+++ b/drivers/thermal/thermal_sys.c
@@ -381,9 +381,12 @@ static void handle_thermal_trip(struct thermal_zone_device *tz, int trip)
381static int thermal_zone_get_temp(struct thermal_zone_device *tz, 381static int thermal_zone_get_temp(struct thermal_zone_device *tz,
382 unsigned long *temp) 382 unsigned long *temp)
383{ 383{
384 int ret = 0, count; 384 int ret = 0;
385#ifdef CONFIG_THERMAL_EMULATION
386 int count;
385 unsigned long crit_temp = -1UL; 387 unsigned long crit_temp = -1UL;
386 enum thermal_trip_type type; 388 enum thermal_trip_type type;
389#endif
387 390
388 mutex_lock(&tz->lock); 391 mutex_lock(&tz->lock);
389 392