Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144267
b: refs/heads/master
c: cd78dfc
h: refs/heads/master
i:
  144265: c956b55
  144263: 67fe76e
v: v3
  • Loading branch information
Diego Liziero authored and Liam Girdwood committed Apr 28, 2009
1 parent fe4a7b2 commit 6bc22dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 036de8efae4b81f8e1504fab654070cecce6dfa9
refs/heads/master: cd78dfc6c6e321a310a73ef7b0df3d262704dd55
4 changes: 2 additions & 2 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2001,8 +2001,8 @@ struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc,
if (regulator_desc->name == NULL || regulator_desc->ops == NULL)
return ERR_PTR(-EINVAL);

if (!regulator_desc->type == REGULATOR_VOLTAGE &&
!regulator_desc->type == REGULATOR_CURRENT)
if (regulator_desc->type != REGULATOR_VOLTAGE &&
regulator_desc->type != REGULATOR_CURRENT)
return ERR_PTR(-EINVAL);

if (!init_data)
Expand Down

0 comments on commit 6bc22dd

Please sign in to comment.