Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282163
b: refs/heads/master
c: 4c78899
h: refs/heads/master
i:
  282161: 1692ea5
  282159: 022b7b2
v: v3
  • Loading branch information
Mark Brown committed Nov 23, 2011
1 parent a547f00 commit 3e771eb
Show file tree
Hide file tree
Showing 2 changed files with 3 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: aebe495895f5542213dd17a644647b0aae8353f0
refs/heads/master: 4c78899b92335af0da11e104698e329bb50810b5
3 changes: 2 additions & 1 deletion trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2503,7 +2503,8 @@ static int add_regulator_attributes(struct regulator_dev *rdev)
int status = 0;

/* some attributes need specific methods to be displayed */
if (ops->get_voltage || ops->get_voltage_sel) {
if ((ops->get_voltage && ops->get_voltage(rdev) >= 0) ||
(ops->get_voltage_sel && ops->get_voltage_sel(rdev) >= 0)) {
status = device_create_file(dev, &dev_attr_microvolts);
if (status < 0)
return status;
Expand Down

0 comments on commit 3e771eb

Please sign in to comment.