projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b269b
)
regulator: anatop-regulator: Remove unneeded memset()
author
Fabio Estevam
<fabio.estevam@freescale.com>
Mon, 6 Jan 2014 12:29:08 +0000
(10:29 -0200)
committer
Mark Brown
<broonie@linaro.org>
Wed, 8 Jan 2014 12:50:11 +0000
(12:50 +0000)
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>
drivers/regulator/anatop-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/anatop-regulator.c
b/drivers/regulator/anatop-regulator.c
index 3d4997aede1d3d63a182466d0e203572c20649c6..862e63e451d02235a8549bd474c49dbe1829dc4e 100644
(file)
--- 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;