]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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 c9e912f583bc57485e09909bff01b58af315d2cb..22c6ae27d0087450624daa5ce8f5762093518ff3 100644 (file)
@@ -565,11 +565,6 @@ static void palmas_dt_to_pdata(struct device *dev,
                if (!ret)
                        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)