From: Andrew Morton Date: Fri, 25 Jul 2008 08:45:22 +0000 (-0700) Subject: mfd: don't use memzero X-Git-Tag: v2.6.27-rc1~500 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c82dd5321cf779f1f536ef26b383cbe8c9de7f10;p=linux-2.6-omap-h63xx.git mfd: don't use memzero For it doesn't exist on i386. Cc: Ian Molton Cc: Dmitry Baryshkov Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index d7d88ce053a..0454be4266c 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;