提交 5e20b2e5 编写于 作者: Z Zhang Rui

Thermal: fix a build warning when CONFIG_THERMAL_EMULATION cleared

Signed-off-by: NZhang Rui <rui.zhang@intel.com>
上级 475f41c3
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册