summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-02-03 20:49:56 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-02-04 10:24:35 +0000
commitf33d0081ff3ffb7180a9794e60318458d7671b36 (patch)
treebe98f273ec36166405e9f24b472bc57ed0fd03db /drivers
parent88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7 (diff)
downloadop-kernel-dev-f33d0081ff3ffb7180a9794e60318458d7671b36.zip
op-kernel-dev-f33d0081ff3ffb7180a9794e60318458d7671b36.tar.gz
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')
-rw-r--r--drivers/regulator/palmas-regulator.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c
index c9e912f..22c6ae2 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,
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;
OpenPOWER on IntegriCloud