summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-01-25 14:01:10 -0800
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-01-25 14:01:10 -0800
commit3824526de4f201d9d85bdd41ad2343a0e3d2ef37 (patch)
tree4239a1d197c32d277a4f265ea7292cb581819ec6 /drivers/regulator
parentefc6aa53ca49b6d2b13875e021d2599de0b9fc38 (diff)
regulator: qpnp-labibb: fix incorrect configuration of SWIRE control
Instead of using the value read from IBB_ENABLE_CTL register to determine whether SWIRE control is already enabled by bootloader, wrong value is used. Fix it. Change-Id: I80ddf60a3a8010a749a001f10ba82e6560ecdfd2 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/qpnp-labibb-regulator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/qpnp-labibb-regulator.c b/drivers/regulator/qpnp-labibb-regulator.c
index 67b97256da1f..7586570ef75d 100644
--- a/drivers/regulator/qpnp-labibb-regulator.c
+++ b/drivers/regulator/qpnp-labibb-regulator.c
@@ -3407,7 +3407,8 @@ static int register_qpnp_ibb_regulator(struct qpnp_labibb *labibb,
* before by the bootloader.
*/
if (labibb->pmic_rev_id->pmic_subtype == PMI8998_SUBTYPE)
- labibb->swire_control = val & IBB_ENABLE_CTL_SWIRE_RDY;
+ labibb->swire_control = ibb_enable_ctl &
+ IBB_ENABLE_CTL_SWIRE_RDY;
if (ibb_enable_ctl &
(IBB_ENABLE_CTL_SWIRE_RDY | IBB_ENABLE_CTL_MODULE_EN)) {