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: Ondrej Zary <linux@zary.sk>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Ondrej Zary 2022-04-10 22:28:33 +02:00 committed by Helge Deller
parent 7015bb57c3
commit 12acdbd7ca
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ static int i740fb_set_par(struct fb_info *info)
if (i)
return i;
memset(info->screen_base, 0, info->screen_size);
memset_io(info->screen_base, 0, info->screen_size);
vga_protect(par);