summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/regulator/anatop-regulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/regulator/anatop-regulator.c')
-rw-r--r--kernel/drivers/regulator/anatop-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/regulator/anatop-regulator.c b/kernel/drivers/regulator/anatop-regulator.c
index 63cd5e68c..3a6d0290c 100644
--- a/kernel/drivers/regulator/anatop-regulator.c
+++ b/kernel/drivers/regulator/anatop-regulator.c
@@ -296,7 +296,7 @@ static int anatop_regulator_probe(struct platform_device *pdev)
if (!sreg->sel && !strcmp(sreg->name, "vddpu"))
sreg->sel = 22;
- if (!sreg->sel) {
+ if (!sreg->bypass && !sreg->sel) {
dev_err(&pdev->dev, "Failed to read a valid default voltage selector.\n");
return -EINVAL;
}