Skip to content

Commit b907b40

Browse files
committed
Merge branches 'thermal-core' and 'thermal-soc' into next
2 parents 8ea2295 + cf1ba1d commit b907b40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/thermal/imx_thermal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,9 @@ static int imx_thermal_probe(struct platform_device *pdev)
637637
regmap_write(map, TEMPSENSE0 + REG_CLR, TEMPSENSE0_POWER_DOWN);
638638
regmap_write(map, TEMPSENSE0 + REG_SET, TEMPSENSE0_MEASURE_TEMP);
639639

640+
data->irq_enabled = true;
641+
data->mode = THERMAL_DEVICE_ENABLED;
642+
640643
ret = devm_request_threaded_irq(&pdev->dev, data->irq,
641644
imx_thermal_alarm_irq, imx_thermal_alarm_irq_thread,
642645
0, "imx_thermal", data);
@@ -649,9 +652,6 @@ static int imx_thermal_probe(struct platform_device *pdev)
649652
return ret;
650653
}
651654

652-
data->irq_enabled = true;
653-
data->mode = THERMAL_DEVICE_ENABLED;
654-
655655
return 0;
656656
}
657657

0 commit comments

Comments
 (0)