regulator: Fix setting constraints->ramp_delay in of_get_regulation_constraints

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Axel Lin 2012-06-18 13:59:02 +08:00 committed by Mark Brown
parent 6f0b2c696c
commit 086ccd4379

View file

@ -63,7 +63,7 @@ static void of_get_regulation_constraints(struct device_node *np,
ramp_delay = of_get_property(np, "regulator-ramp-delay", NULL); ramp_delay = of_get_property(np, "regulator-ramp-delay", NULL);
if (ramp_delay) if (ramp_delay)
constraints->min_uV = be32_to_cpu(*ramp_delay); constraints->ramp_delay = be32_to_cpu(*ramp_delay);
} }
/** /**