From fc59cae4231c4087fdb820a8cb446ecb0a1b5f24 Mon Sep 17 00:00:00 2001 From: Zhang Rui Date: Wed, 6 Feb 2013 14:02:12 +0800 Subject: [PATCH] --- yaml --- r: 359773 b: refs/heads/master c: 5e20b2e51dd13c569ea1ff65c2a57d00a84a81b0 h: refs/heads/master i: 359771: 74820123191ce84d272260836cb987dbab190e93 v: v3 --- [refs] | 2 +- trunk/drivers/thermal/thermal_sys.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 98001981111a..dda17a3a1478 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 475f41c3ab3dea3a5c60b90197baf57da01fdb5f +refs/heads/master: 5e20b2e51dd13c569ea1ff65c2a57d00a84a81b0 diff --git a/trunk/drivers/thermal/thermal_sys.c b/trunk/drivers/thermal/thermal_sys.c index 0675687c6de8..6472e7e9f969 100644 --- a/trunk/drivers/thermal/thermal_sys.c +++ b/trunk/drivers/thermal/thermal_sys.c @@ -381,9 +381,12 @@ static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) static int thermal_zone_get_temp(struct thermal_zone_device *tz, unsigned long *temp) { - int ret = 0, count; + int ret = 0; +#ifdef CONFIG_THERMAL_EMULATION + int count; unsigned long crit_temp = -1UL; enum thermal_trip_type type; +#endif mutex_lock(&tz->lock);