aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/sm501fb.c
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-02-10 18:07:32 +0530
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-03-02 13:17:24 +0200
commit233b2ebe90d381dc477f990b7624fa8d21df3e22 (patch)
tree1fa30d2d9ae6043995483b096ae9cbf34889bcf7 /drivers/video/fbdev/sm501fb.c
parentLinux 4.0-rc1 (diff)
downloadlinux-dev-233b2ebe90d381dc477f990b7624fa8d21df3e22.tar.xz
linux-dev-233b2ebe90d381dc477f990b7624fa8d21df3e22.zip
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>
Diffstat (limited to 'drivers/video/fbdev/sm501fb.c')
-rw-r--r--drivers/video/fbdev/sm501fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/sm501fb.c b/drivers/video/fbdev/sm501fb.c
index e8d4121783fb..d0a4e2f79a57 100644
--- a/drivers/video/fbdev/sm501fb.c
+++ b/drivers/video/fbdev/sm501fb.c
@@ -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++)