]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
fbdev: sm501fb: use memset_io
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 10 Feb 2015 12:37:32 +0000 (18:07 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 2 Mar 2015 11:17:24 +0000 (13:17 +0200)
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>
drivers/video/fbdev/sm501fb.c

index e8d4121783fb09b4f4ffcb2f12b035545c1c6cb6..d0a4e2f79a5703c3b0ed1b968fcac40f43052968 100644 (file)
@@ -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++)