We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ea2295 + cf1ba1d commit b907b40Copy full SHA for b907b40
drivers/thermal/imx_thermal.c
@@ -637,6 +637,9 @@ static int imx_thermal_probe(struct platform_device *pdev)
637
regmap_write(map, TEMPSENSE0 + REG_CLR, TEMPSENSE0_POWER_DOWN);
638
regmap_write(map, TEMPSENSE0 + REG_SET, TEMPSENSE0_MEASURE_TEMP);
639
640
+ data->irq_enabled = true;
641
+ data->mode = THERMAL_DEVICE_ENABLED;
642
+
643
ret = devm_request_threaded_irq(&pdev->dev, data->irq,
644
imx_thermal_alarm_irq, imx_thermal_alarm_irq_thread,
645
0, "imx_thermal", data);
@@ -649,9 +652,6 @@ static int imx_thermal_probe(struct platform_device *pdev)
649
652
return ret;
650
653
}
651
654
- data->irq_enabled = true;
- data->mode = THERMAL_DEVICE_ENABLED;
-
655
return 0;
656
657
0 commit comments