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:
parent
c517d838eb
commit
233b2ebe90
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue