Skip to content

Commit

Permalink
regulator: core: Check for DT every time we check full constraints
Browse files Browse the repository at this point in the history
Eliminate the gap between DT becoming available and this being used to say
we have full constraints by checking directly for DT every time we check
for full constraints. This improves interoperaton with optional regulator
support.

Signed-off-by: Mark Brown <broonie@linaro.org>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
  • Loading branch information
Mark Brown committed Nov 27, 2013
1 parent 87b2841 commit 75bc964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static const char *rdev_get_name(struct regulator_dev *rdev)

static bool have_full_constraints(void)
{
return has_full_constraints;
return has_full_constraints || of_have_populated_dt();
}

/**
Expand Down

0 comments on commit 75bc964

Please sign in to comment.