From: Sudip Mukherjee Date: Tue, 10 Feb 2015 12:37:32 +0000 (+0530) Subject: fbdev: sm501fb: use memset_io X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=233b2ebe90d381dc477f990b7624fa8d21df3e22;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Tomi Valkeinen --- 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++)