Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c82dd532 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3d6f4a20
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;