Skip to content

Commit

Permalink
fbdev: sm501fb: use memset_io
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sudip Mukherjee authored and Tomi Valkeinen committed Mar 2, 2015
1 parent c517d83 commit 233b2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/fbdev/sm501fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 233b2eb

Please sign in to comment.