Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223116
b: refs/heads/master
c: 1dbcf35
h: refs/heads/master
v: v3
  • Loading branch information
Danny Huang authored and Liam Girdwood committed Dec 9, 2010
1 parent 64a1037 commit c2caa35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 64db657b5a45f1676d421e2bdfb7d4910dce87d3
refs/heads/master: 1dbcf35cb5b775e564a793a338c7c3eb65fc6980
4 changes: 4 additions & 0 deletions trunk/drivers/regulator/tps6586x-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ static inline int tps6586x_regulator_preinit(struct device *parent,
uint8_t val1, val2;
int ret;

if (ri->enable_reg[0] == ri->enable_reg[1] &&
ri->enable_bit[0] == ri->enable_bit[1])
return 0;

ret = tps6586x_read(parent, ri->enable_reg[0], &val1);
if (ret)
return ret;
Expand Down

0 comments on commit c2caa35

Please sign in to comment.