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>
This commit is contained in:
Manaf Meethalavalappu Pallikunhi 2017-06-07 22:51:39 +05:30
parent 6319cf033b
commit bee05cdb37

View file

@ -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);