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

Commit 233b2ebe authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Tomi Valkeinen
Browse files

fbdev: sm501fb: use memset_io



we should really be using memset_io() instead of using memset() as
this is actually io space mapped into our memory.

Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent c517d838
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1606,7 +1606,7 @@ static int sm501fb_start(struct sm501fb_info *info,
	info->fbmem_len = resource_size(res);

	/* clear framebuffer memory - avoids garbage data on unused fb */
	memset(info->fbmem, 0, info->fbmem_len);
	memset_io(info->fbmem, 0, info->fbmem_len);

	/* clear palette ram - undefined at power on */
	for (k = 0; k < (256 * 3); k++)