提交 b907b408 编写于 作者: Z Zhang Rui

Merge branches 'thermal-core' and 'thermal-soc' into next

...@@ -637,6 +637,9 @@ static int imx_thermal_probe(struct platform_device *pdev) ...@@ -637,6 +637,9 @@ static int imx_thermal_probe(struct platform_device *pdev)
regmap_write(map, TEMPSENSE0 + REG_CLR, TEMPSENSE0_POWER_DOWN); regmap_write(map, TEMPSENSE0 + REG_CLR, TEMPSENSE0_POWER_DOWN);
regmap_write(map, TEMPSENSE0 + REG_SET, TEMPSENSE0_MEASURE_TEMP); regmap_write(map, TEMPSENSE0 + REG_SET, TEMPSENSE0_MEASURE_TEMP);
data->irq_enabled = true;
data->mode = THERMAL_DEVICE_ENABLED;
ret = devm_request_threaded_irq(&pdev->dev, data->irq, ret = devm_request_threaded_irq(&pdev->dev, data->irq,
imx_thermal_alarm_irq, imx_thermal_alarm_irq_thread, imx_thermal_alarm_irq, imx_thermal_alarm_irq_thread,
0, "imx_thermal", data); 0, "imx_thermal", data);
...@@ -649,9 +652,6 @@ static int imx_thermal_probe(struct platform_device *pdev) ...@@ -649,9 +652,6 @@ static int imx_thermal_probe(struct platform_device *pdev)
return ret; return ret;
} }
data->irq_enabled = true;
data->mode = THERMAL_DEVICE_ENABLED;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册