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: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
Sudip Mukherjee 2015-02-10 18:07:32 +05:30 committed by Tomi Valkeinen
parent c517d838eb
commit 233b2ebe90
1 changed files with 1 additions and 1 deletions

View File

@ -1606,7 +1606,7 @@ static int sm501fb_start(struct sm501fb_info *info,
info->fbmem_len = resource_size(res); info->fbmem_len = resource_size(res);
/* clear framebuffer memory - avoids garbage data on unused fb */ /* 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 */ /* clear palette ram - undefined at power on */
for (k = 0; k < (256 * 3); k++) for (k = 0; k < (256 * 3); k++)