regulator: Fix setting constraints->ramp_delay in of_get_regulation_constraints
authorAxel Lin <axel.lin@gmail.com>
Mon, 18 Jun 2012 05:59:02 +0000 (13:59 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 18 Jun 2012 09:46:57 +0000 (10:46 +0100)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/of_regulator.c

index e2a7310790667a26aeca3437bb229b2e3805606a..68dc3d43dd373de1d5f4035271686a90c628c3ec 100644 (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);
        if (ramp_delay)
-               constraints->min_uV = be32_to_cpu(*ramp_delay);
+               constraints->ramp_delay = be32_to_cpu(*ramp_delay);
 }
 
 /**