diff options
Diffstat (limited to 'drivers/regulator/tps6524x-regulator.c')
-rw-r--r-- | drivers/regulator/tps6524x-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c index b88b3df82381..1b299aacf22f 100644 --- a/drivers/regulator/tps6524x-regulator.c +++ b/drivers/regulator/tps6524x-regulator.c | |||
@@ -482,7 +482,7 @@ static int get_voltage_sel(struct regulator_dev *rdev) | |||
482 | info = &supply_info[rdev_get_id(rdev)]; | 482 | info = &supply_info[rdev_get_id(rdev)]; |
483 | 483 | ||
484 | if (info->flags & FIXED_VOLTAGE) | 484 | if (info->flags & FIXED_VOLTAGE) |
485 | return info->fixed_voltage; | 485 | return 0; |
486 | 486 | ||
487 | ret = read_field(hw, &info->voltage); | 487 | ret = read_field(hw, &info->voltage); |
488 | if (ret < 0) | 488 | if (ret < 0) |