Commit 75bc9641 authored by Mark Brown's avatar Mark Brown

regulator: core: Check for DT every time we check full constraints

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: default avatarMark Brown <broonie@linaro.org>
Tested-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
parent 87b28417
......@@ -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();
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment