Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302198
b: refs/heads/master
c: 32c8fad
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Apr 11, 2012
1 parent 96d91c1 commit dea0a54
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 9eb0c4218aa444f863e7f54909351d5b4f0fac06
refs/heads/master: 32c8fad438200b523ec44a49b40cb8ffdf715f7c
4 changes: 3 additions & 1 deletion trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2833,13 +2833,15 @@ regulator_register(const struct regulator_desc *regulator_desc,
const struct regulator_init_data *init_data;
static atomic_t regulator_no = ATOMIC_INIT(0);
struct regulator_dev *rdev;
struct device *dev = config->dev;
struct device *dev;
int ret, i;
const char *supply = NULL;

if (regulator_desc == NULL || config == NULL)
return ERR_PTR(-EINVAL);

dev = config->dev;

if (regulator_desc->name == NULL || regulator_desc->ops == NULL)
return ERR_PTR(-EINVAL);

Expand Down

0 comments on commit dea0a54

Please sign in to comment.