summaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>2017-06-07 22:51:39 +0530
committerManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>2017-06-07 23:00:38 +0530
commitbee05cdb37c6ef6bcaf37f79d2d220d29587215b (patch)
tree8483e9617082282da0630f71f1ef6ed46c420450 /drivers/thermal
parent6319cf033ba2da8fdbdfcbdd159b20450a871726 (diff)
msm: thermal: Probe sensor info prior to other feature probe
Sensor info probe is parsing available sensors info for device tree including each sensor scaling factor. Sensor scaling factor needs to be initialized prior to other mitigation feature initialization because mitgation features initialize threshold setting at probe itself. Initialize sensor info feature prior to mitigation features initialization. Change-Id: Ieacd805a4d547d1b74ca8f0eeb5c93ea0e445e0c Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/msm_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/msm_thermal.c b/drivers/thermal/msm_thermal.c
index c8cbd078bb07..b1f4c3f27111 100644
--- a/drivers/thermal/msm_thermal.c
+++ b/drivers/thermal/msm_thermal.c
@@ -7409,11 +7409,11 @@ static int msm_thermal_dev_probe(struct platform_device *pdev)
pr_err("thermal pre init failed. err:%d\n", ret);
goto probe_exit;
}
+ probe_sensor_info(node, &data, pdev);
ret = probe_deferrable_properties(node, &data, pdev);
if (ret)
goto probe_exit;
- probe_sensor_info(node, &data, pdev);
probe_cc(node, &data, pdev);
probe_freq_mitigation(node, &data, pdev);
probe_cx_phase_ctrl(node, &data, pdev);