diff options
Diffstat (limited to 'drivers/regulator/88pm8607.c')
-rw-r--r-- | drivers/regulator/88pm8607.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/88pm8607.c b/drivers/regulator/88pm8607.c index e1aabdaabf23..04719551381b 100644 --- a/drivers/regulator/88pm8607.c +++ b/drivers/regulator/88pm8607.c | |||
@@ -170,7 +170,8 @@ static int choose_voltage(struct regulator_dev *rdev, int min_uV, int max_uV) | |||
170 | { | 170 | { |
171 | struct pm8607_regulator_info *info = rdev_get_drvdata(rdev); | 171 | struct pm8607_regulator_info *info = rdev_get_drvdata(rdev); |
172 | uint8_t chip_id = info->chip->chip_id; | 172 | uint8_t chip_id = info->chip->chip_id; |
173 | int val, ret; | 173 | int val = -ENOENT; |
174 | int ret; | ||
174 | 175 | ||
175 | switch (info->desc.id) { | 176 | switch (info->desc.id) { |
176 | case PM8607_ID_BUCK1: | 177 | case PM8607_ID_BUCK1: |