From a004a8c07b16efee3200bb2ef3610b0553dabb2f Mon Sep 17 00:00:00 2001 From: Ram Chandrasekar Date: Tue, 3 May 2016 17:21:40 -0600 Subject: [PATCH] msm: thermal: Remove proactive vdd restriction during probe Vdd restriction probe will apply mitigation, which will be cleared later during the KTM boot mitigation. KTM now initializes the data structures to do this mitigation only after vdd restriction probe. So remove this pro-active mitigation in the probe function. KTM boot mitigation will be started immediately after the KTM probe and can take care of this mitigation. CRs-Fixed: 1010111 Change-Id: Ica59aeb0c94581e3c37b5b7df16c187ced45c28a Signed-off-by: Ram Chandrasekar --- drivers/thermal/msm_thermal.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/thermal/msm_thermal.c b/drivers/thermal/msm_thermal.c index 743a2a5922dc..a09f58eec659 100644 --- a/drivers/thermal/msm_thermal.c +++ b/drivers/thermal/msm_thermal.c @@ -5378,15 +5378,6 @@ static int vdd_restriction_reg_init(struct platform_device *pdev) for (i = 0; i < rails_cnt; i++) { if (rails[i].freq_req == 1) { usefreq |= BIT(i); - check_freq_table(); - /* - * Restrict frequency by default until we have made - * our first temp reading - */ - if (freq_table_get) - ret = vdd_restriction_apply_freq(&rails[i], 0); - else - pr_info("Defer vdd rstr freq init.\n"); } else { rails[i].reg = devm_regulator_get(&pdev->dev, rails[i].name); @@ -5404,11 +5395,6 @@ static int vdd_restriction_reg_init(struct platform_device *pdev) rails[i].name); return ret; } - /* - * Restrict votlage by default until we have made - * our first temp reading - */ - ret = vdd_restriction_apply_voltage(&rails[i], 0); } }