diff options
author | Zhang Rui <rui.zhang@intel.com> | 2018-04-13 02:11:53 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2018-04-13 02:11:53 -0400 |
commit | b907b408ca64482989cd95dacef804ce509a3673 (patch) | |
tree | 3c9a139b01367788f50cc3fcefb5d042d6051402 /drivers | |
parent | 8ea229511e06f9635ecc338dcbe0db41a73623f0 (diff) | |
parent | cf1ba1d73a33944d8c1a75370a35434bf146b8a7 (diff) |
Merge branches 'thermal-core' and 'thermal-soc' into next
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/thermal/imx_thermal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index a67781b7a0b2..ee3a215b333a 100644 --- a/drivers/thermal/imx_thermal.c +++ b/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); | 637 | regmap_write(map, TEMPSENSE0 + REG_CLR, TEMPSENSE0_POWER_DOWN); |
638 | regmap_write(map, TEMPSENSE0 + REG_SET, TEMPSENSE0_MEASURE_TEMP); | 638 | regmap_write(map, TEMPSENSE0 + REG_SET, TEMPSENSE0_MEASURE_TEMP); |
639 | 639 | ||
640 | data->irq_enabled = true; | ||
641 | data->mode = THERMAL_DEVICE_ENABLED; | ||
642 | |||
640 | ret = devm_request_threaded_irq(&pdev->dev, data->irq, | 643 | ret = devm_request_threaded_irq(&pdev->dev, data->irq, |
641 | imx_thermal_alarm_irq, imx_thermal_alarm_irq_thread, | 644 | imx_thermal_alarm_irq, imx_thermal_alarm_irq_thread, |
642 | 0, "imx_thermal", data); | 645 | 0, "imx_thermal", data); |
@@ -649,9 +652,6 @@ static int imx_thermal_probe(struct platform_device *pdev) | |||
649 | return ret; | 652 | return ret; |
650 | } | 653 | } |
651 | 654 | ||
652 | data->irq_enabled = true; | ||
653 | data->mode = THERMAL_DEVICE_ENABLED; | ||
654 | |||
655 | return 0; | 655 | return 0; |
656 | } | 656 | } |
657 | 657 | ||