Skip to content

Commit

Permalink
Merge branches 'thermal-core' and 'thermal-soc' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang Rui committed Apr 13, 2018
2 parents 8ea2295 + cf1ba1d commit b907b40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/thermal/imx_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_SET, TEMPSENSE0_MEASURE_TEMP);

data->irq_enabled = true;
data->mode = THERMAL_DEVICE_ENABLED;

ret = devm_request_threaded_irq(&pdev->dev, data->irq,
imx_thermal_alarm_irq, imx_thermal_alarm_irq_thread,
0, "imx_thermal", data);
Expand All @@ -649,9 +652,6 @@ static int imx_thermal_probe(struct platform_device *pdev)
return ret;
}

data->irq_enabled = true;
data->mode = THERMAL_DEVICE_ENABLED;

return 0;
}

Expand Down

0 comments on commit b907b40

Please sign in to comment.