summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/anatop-regulator.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-01-06 13:29:08 +0100
committerMark Brown <broonie@linaro.org>2014-01-08 13:50:11 +0100
commit06e57b6c1e6cfabdaf6fb95207dcefe03c20b06d (patch)
tree7a3814d55f612e0c96a231f8fbf8d1b7ce2bce14 /drivers/regulator/anatop-regulator.c
parentregulator: anatop-regulator: Remove unneeded kstrdup() (diff)
downloadlinux-06e57b6c1e6cfabdaf6fb95207dcefe03c20b06d.tar.xz
linux-06e57b6c1e6cfabdaf6fb95207dcefe03c20b06d.zip
regulator: anatop-regulator: Remove unneeded memset()
sreg is allocated via devm_kzalloc(), so there is no need to explicitly zero out rdesc via memset(). Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/anatop-regulator.c')
-rw-r--r--drivers/regulator/anatop-regulator.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c
index 3d4997aede1d..862e63e451d0 100644
--- a/drivers/regulator/anatop-regulator.c
+++ b/drivers/regulator/anatop-regulator.c
@@ -124,7 +124,6 @@ static int anatop_regulator_probe(struct platform_device *pdev)
sreg->initdata = initdata;
sreg->name = of_get_property(np, "regulator-name", NULL);
rdesc = &sreg->rdesc;
- memset(rdesc, 0, sizeof(*rdesc));
rdesc->name = sreg->name;
rdesc->ops = &anatop_rops;
rdesc->type = REGULATOR_VOLTAGE;