mfd: don't use memzero

For it doesn't exist on i386.

Cc: Ian Molton <[email protected]>
Cc: Dmitry Baryshkov <[email protected]>
Cc: Russell King <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Andrew Morton 2008-07-25 01:45:22 -07:00 • committed by Linus Torvalds
commit c82dd5321c

View file

@ -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;