regulator: cpr3-regulator: wait for SPM availability for CPRh controllers

CPRh controllers communicate voltages to the PMIC via the SAW
AVS interface similar to other controllers supporting hardware
closed-loop operation. Ensure the SPM driver has probed and
enabled the SAW AVS system.

Change-Id: Ide2c4500cfdd0a9c684329ab5f7ac0603e4fc199
CRs-Fixed: 995686
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
This commit is contained in:
Osvaldo Banuelos 2016-03-28 10:31:18 -07:00 committed by Jeevan Shriram
parent 668a772675
commit ed6468ea4a

View file

@ -5839,8 +5839,7 @@ int cpr3_regulator_register(struct platform_device *pdev,
}
}
if (ctrl->supports_hw_closed_loop && ctrl->ctrl_type !=
CPR_CTRL_TYPE_CPRH) {
if (ctrl->supports_hw_closed_loop) {
rc = msm_spm_probe_done();
if (rc) {
if (rc != -EPROBE_DEFER)