mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 18:06:39 +07:00
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
Block a user