Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282162
b: refs/heads/master
c: aebe495
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Nov 23, 2011
1 parent 1692ea5 commit a547f00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1fc1480249dfe059254779a4bb7ca27cf5f8038
refs/heads/master: aebe495895f5542213dd17a644647b0aae8353f0
5 changes: 4 additions & 1 deletion trunk/drivers/regulator/fixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ static int fixed_voltage_get_voltage(struct regulator_dev *dev)
{
struct fixed_voltage_data *data = rdev_get_drvdata(dev);

return data->microvolts;
if (data->microvolts)
return data->microvolts;
else
return -EINVAL;
}

static int fixed_voltage_list_voltage(struct regulator_dev *dev,
Expand Down

0 comments on commit a547f00

Please sign in to comment.