From: Axel Lin Date: Mon, 18 Jun 2012 05:59:02 +0000 (+0800) Subject: regulator: Fix setting constraints->ramp_delay in of_get_regulation_constraints X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=086ccd4379ad6c9c7c7713ef5f61b9d12e995147;p=deliverable%2Flinux.git regulator: Fix setting constraints->ramp_delay in of_get_regulation_constraints Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regulator.c index e2a731079066..68dc3d43dd37 100644 --- a/drivers/regulator/of_regulator.c +++ b/drivers/regulator/of_regulator.c @@ -63,7 +63,7 @@ static void of_get_regulation_constraints(struct device_node *np, ramp_delay = of_get_property(np, "regulator-ramp-delay", NULL); if (ramp_delay) - constraints->min_uV = be32_to_cpu(*ramp_delay); + constraints->ramp_delay = be32_to_cpu(*ramp_delay); } /**