From: Andrew Morton Date: Fri, 25 Jul 2008 08:45:22 +0000 (-0700) Subject: mfd: don't use memzero X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c82dd5321cf779f1f536ef26b383cbe8c9de7f10;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 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;