diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/regulator/anatop-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index 63cd5e68c864..3a6d0290c54c 100644 --- a/drivers/regulator/anatop-regulator.c +++ b/drivers/regulator/anatop-regulator.c | |||
| @@ -296,7 +296,7 @@ static int anatop_regulator_probe(struct platform_device *pdev) | |||
| 296 | if (!sreg->sel && !strcmp(sreg->name, "vddpu")) | 296 | if (!sreg->sel && !strcmp(sreg->name, "vddpu")) |
| 297 | sreg->sel = 22; | 297 | sreg->sel = 22; |
| 298 | 298 | ||
| 299 | if (!sreg->sel) { | 299 | if (!sreg->bypass && !sreg->sel) { |
| 300 | dev_err(&pdev->dev, "Failed to read a valid default voltage selector.\n"); | 300 | dev_err(&pdev->dev, "Failed to read a valid default voltage selector.\n"); |
| 301 | return -EINVAL; | 301 | return -EINVAL; |
| 302 | } | 302 | } |
