From bee05cdb37c6ef6bcaf37f79d2d220d29587215b Mon Sep 17 00:00:00 2001 From: Manaf Meethalavalappu Pallikunhi Date: Wed, 7 Jun 2017 22:51:39 +0530 Subject: [PATCH] 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 --- drivers/thermal/msm_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);