Skip to content

Commit

Permalink
Thermal: fix a build warning when CONFIG_THERMAL_EMULATION cleared
Browse files Browse the repository at this point in the history
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
  • Loading branch information
Zhang Rui committed Feb 6, 2013
1 parent 475f41c commit 5e20b2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/thermal/thermal_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5e20b2e

Please sign in to comment.