summaryrefslogtreecommitdiff
path: root/drivers/regulator/anatop-regulator.c
diff options
context:
space:
mode:
authorRichard Zhu <Richard.Zhu@freescale.com>2015-09-15 14:27:00 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:23:17 +0800
commitf1b10e76f2e4af882e0bf29cbfe1520a608823a7 (patch)
tree11c937c532aeb5c10c0d4d91cdef8716f6a94682 /drivers/regulator/anatop-regulator.c
parent899789ae3fe9e13e0ee0f7a6633229dce40beec3 (diff)
MLK-11561-2 regulator: anatop: set default voltage selector for pcie
The code reads the default voltage selector from its register. If the default voltage selector is 0 which results in faulty behaviour of this regulator driver. This patch sets a default voltage selector for vddpcie-phy if it is not set in the register. Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
Diffstat (limited to 'drivers/regulator/anatop-regulator.c')
-rw-r--r--drivers/regulator/anatop-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c
index 1aaf87660659..fcdbc836ca4a 100644
--- a/drivers/regulator/anatop-regulator.c
+++ b/drivers/regulator/anatop-regulator.c
@@ -360,7 +360,7 @@ static int anatop_regulator_probe(struct platform_device *pdev)
sreg->sel = 22;
/* set the default voltage of the pcie phy to be 1.100v */
- if (!sreg->sel && !strcmp(rdesc->name, "vddpcie"))
+ if (!sreg->sel && !strcmp(rdesc->name, "vddpcie-phy"))
sreg->sel = 0x10;
if (!sreg->bypass && !sreg->sel) {