summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/mfd-core.c
diff options
context:
space:
mode:
authorAndrew Morton2008-07-25 10:45:22 +0200
committerLinus Torvalds2008-07-25 19:53:26 +0200
commitc82dd5321cf779f1f536ef26b383cbe8c9de7f10 (patch)
tree5282168002d51692fbdb943cf13ed3a61861c860 /drivers/mfd/mfd-core.c
parentendian: Always evaluate arguments. (diff)
downloadkernel-qcow2-linux-c82dd5321cf779f1f536ef26b383cbe8c9de7f10.tar.gz
kernel-qcow2-linux-c82dd5321cf779f1f536ef26b383cbe8c9de7f10.tar.xz
kernel-qcow2-linux-c82dd5321cf779f1f536ef26b383cbe8c9de7f10.zip
mfd: don't use memzero
For it doesn't exist on i386. Cc: Ian Molton <spyro@f2s.com> Cc: Dmitry Baryshkov <dbaryshkov@gmail.com> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mfd/mfd-core.c')
-rw-r--r--drivers/mfd/mfd-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c
index d7d88ce053a6..0454be4266c1 100644
--- a/drivers/mfd/mfd-core.c
+++ b/drivers/mfd/mfd-core.c
@@ -36,7 +36,7 @@ static int mfd_add_device(struct platform_device *parent,
if (ret)
goto fail_device;
- memzero(res, sizeof(res));
+ memset(res, 0, sizeof(res));
for (r = 0; r < cell->num_resources; r++) {
res[r].name = cell->resources[r].name;
res[r].flags = cell->resources[r].flags;