diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-02-03 07:49:56 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-04 05:24:35 -0500 |
commit | f33d0081ff3ffb7180a9794e60318458d7671b36 (patch) | |
tree | be98f273ec36166405e9f24b472bc57ed0fd03db /drivers/regulator | |
parent | 88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7 (diff) |
regulator: palmas: Remove a redundant setting for warm_reset
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/palmas-regulator.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c index c9e912f583bc..22c6ae27d008 100644 --- a/drivers/regulator/palmas-regulator.c +++ b/drivers/regulator/palmas-regulator.c | |||
@@ -566,11 +566,6 @@ static void palmas_dt_to_pdata(struct device *dev, | |||
566 | pdata->reg_init[idx]->mode_sleep = prop; | 566 | pdata->reg_init[idx]->mode_sleep = prop; |
567 | 567 | ||
568 | ret = of_property_read_u32(palmas_matches[idx].of_node, | 568 | ret = of_property_read_u32(palmas_matches[idx].of_node, |
569 | "ti,warm_reset", &prop); | ||
570 | if (!ret) | ||
571 | pdata->reg_init[idx]->warm_reset = prop; | ||
572 | |||
573 | ret = of_property_read_u32(palmas_matches[idx].of_node, | ||
574 | "ti,tstep", &prop); | 569 | "ti,tstep", &prop); |
575 | if (!ret) | 570 | if (!ret) |
576 | pdata->reg_init[idx]->tstep = prop; | 571 | pdata->reg_init[idx]->tstep = prop; |