Commit 12acdbd7 authored by Ondrej Zary's avatar Ondrej Zary Committed by Helge Deller

video: fbdev: i740fb: use memset_io() to clear screen

sparse complains that using memset() on __iomem pointer is wrong:
incorrect type in argument 1 (different address spaces)

Use memset_io() to clear screen instead.

Tested on real i740 cards.
Signed-off-by: default avatarOndrej Zary <linux@zary.sk>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 7015bb57
...@@ -740,7 +740,7 @@ static int i740fb_set_par(struct fb_info *info) ...@@ -740,7 +740,7 @@ static int i740fb_set_par(struct fb_info *info)
if (i) if (i)
return i; return i;
memset(info->screen_base, 0, info->screen_size); memset_io(info->screen_base, 0, info->screen_size);
vga_protect(par); vga_protect(par);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment