regulator: palmas: Remove a redundant setting for warm_reset
authorAxel Lin <axel.lin@ingics.com>
Sun, 3 Feb 2013 12:49:56 +0000 (20:49 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Feb 2013 10:24:35 +0000 (10:24 +0000)
Current code read "ti,warm_reset" of property twice, and set
pdata->reg_init[idx]->warm_reset twice. Read and set it once is enough.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/palmas-regulator.c

index c9e912f..22c6ae2 100644 (file)
@@ -566,11 +566,6 @@ static void palmas_dt_to_pdata(struct device *dev,
                        pdata->reg_init[idx]->mode_sleep = prop;
 
                ret = of_property_read_u32(palmas_matches[idx].of_node,
-                               "ti,warm_reset", &prop);
-               if (!ret)
-                       pdata->reg_init[idx]->warm_reset = prop;
-
-               ret = of_property_read_u32(palmas_matches[idx].of_node,
                                "ti,tstep", &prop);
                if (!ret)
                        pdata->reg_init[idx]->tstep = prop;