From: Axel Lin Date: Sun, 3 Feb 2013 12:49:56 +0000 (+0800) Subject: regulator: palmas: Remove a redundant setting for warm_reset X-Git-Tag: v3.9-rc1~154^2~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f33d0081ff3ffb7180a9794e60318458d7671b36;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Mark Brown --- 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;