From: Mark Brown Date: Wed, 27 Nov 2013 16:22:53 +0000 (+0000) Subject: regulator: core: Check for DT every time we check full constraints X-Git-Tag: MMI-PSA29.97-13-9~13088^2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75bc9641cadd2a3f91f9c2e7f2fdfdeb8bd4b1d6;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Mark Brown Tested-by: Fabio Estevam --- diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 1f314921774d..6a75794ab20d 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -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(); } /**