Skip to content

Commit

Permalink
Merge remote-tracking branch 'regulator/topic/core' into regulator-next
Browse files Browse the repository at this point in the history
  • Loading branch information
broonie committed May 13, 2016
2 parents 75941a1 + de4a54c commit 170b649
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -11997,7 +11997,9 @@ L: linux-kernel@vger.kernel.org
W: http://www.slimlogic.co.uk/?p=48
T: git git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git
S: Supported
F: Documentation/devicetree/bindings/regulator/
F: drivers/regulator/
F: include/dt-bindings/regulator/
F: include/linux/regulator/

VRF
Expand Down
4 changes: 1 addition & 3 deletions drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,6 @@ static int suspend_set_state(struct regulator_dev *rdev,
/* locks held by caller */
static int suspend_prepare(struct regulator_dev *rdev, suspend_state_t state)
{
lockdep_assert_held_once(&rdev->mutex);

if (!rdev->constraints)
return -EINVAL;

Expand Down Expand Up @@ -1539,7 +1537,7 @@ static int regulator_resolve_supply(struct regulator_dev *rdev)
}

/* Cascade always-on state to supply */
if (_regulator_is_enabled(rdev) && rdev->supply) {
if (_regulator_is_enabled(rdev)) {
ret = regulator_enable(rdev->supply);
if (ret < 0) {
_regulator_put(rdev->supply);
Expand Down
2 changes: 1 addition & 1 deletion include/linux/regulator/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ struct regulator_desc {
const struct regulator_desc *,
struct regulator_config *);
int id;
bool continuous_voltage_range;
unsigned int continuous_voltage_range:1;
unsigned n_voltages;
const struct regulator_ops *ops;
int irq;
Expand Down

0 comments on commit 170b649

Please sign in to comment.