Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127855
b: refs/heads/master
c: 74f544c
h: refs/heads/master
i:
  127853: 8b433d4
  127851: bf515b3
  127847: f409a39
  127839: e362ad5
v: v3
  • Loading branch information
Mike Rapoport authored and Liam Girdwood committed Jan 8, 2009
1 parent 235d24b commit 336179e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 961869048b61c853a17f35b98be91c5630a73906
refs/heads/master: 74f544c1fc0339acf6f66ff438b8543b1f9faf10
10 changes: 5 additions & 5 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1858,11 +1858,6 @@ struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc,
goto clean;
}

/* set regulator constraints */
ret = set_machine_constraints(rdev, &init_data->constraints);
if (ret < 0)
goto clean;

/* register with sysfs */
rdev->dev.class = &regulator_class;
rdev->dev.parent = dev;
Expand All @@ -1874,6 +1869,11 @@ struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc,

dev_set_drvdata(&rdev->dev, rdev);

/* set regulator constraints */
ret = set_machine_constraints(rdev, &init_data->constraints);
if (ret < 0)
goto scrub;

/* add attributes supported by this regulator */
ret = add_regulator_attributes(rdev);
if (ret < 0)
Expand Down

0 comments on commit 336179e

Please sign in to comment.