aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/hisi_thermal.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c
index f5231974504c..9ec5f290b850 100644
--- a/drivers/thermal/hisi_thermal.c
+++ b/drivers/thermal/hisi_thermal.c
@@ -221,14 +221,10 @@ static irqreturn_t hisi_thermal_alarm_irq(int irq, void *dev)
221static irqreturn_t hisi_thermal_alarm_irq_thread(int irq, void *dev) 221static irqreturn_t hisi_thermal_alarm_irq_thread(int irq, void *dev)
222{ 222{
223 struct hisi_thermal_data *data = dev; 223 struct hisi_thermal_data *data = dev;
224 struct hisi_thermal_sensor *sensor; 224 struct hisi_thermal_sensor *sensor = &data->sensors;
225
226 mutex_lock(&data->thermal_lock);
227 sensor = &data->sensors;
228 225
229 dev_crit(&data->pdev->dev, "THERMAL ALARM: T > %d\n", 226 dev_crit(&data->pdev->dev, "THERMAL ALARM: T > %d\n",
230 sensor->thres_temp); 227 sensor->thres_temp);
231 mutex_unlock(&data->thermal_lock);
232 228
233 thermal_zone_device_update(data->sensors.tzd, 229 thermal_zone_device_update(data->sensors.tzd,
234 THERMAL_EVENT_UNSPECIFIED); 230 THERMAL_EVENT_UNSPECIFIED);