diff options
author | Ondrej Zary <linux@zary.sk> | 2022-04-10 22:28:33 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-04-11 08:23:50 +0200 |
commit | 12acdbd7ca7d8b3ac0f55d8069f52c223d8d23fd (patch) | |
tree | 21702e11c15f7b3007e4f4a92078ae92cb2e8345 /drivers/video/fbdev/i740fb.c | |
parent | video: fbdev: s3fb: Error out if 'pixclock' equals zero (diff) | |
download | linux-12acdbd7ca7d8b3ac0f55d8069f52c223d8d23fd.tar.xz linux-12acdbd7ca7d8b3ac0f55d8069f52c223d8d23fd.zip |
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>
Diffstat (limited to 'drivers/video/fbdev/i740fb.c')
-rw-r--r-- | drivers/video/fbdev/i740fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/i740fb.c b/drivers/video/fbdev/i740fb.c index 52cce0db8bd3..dd45ea8203be 100644 --- a/drivers/video/fbdev/i740fb.c +++ b/drivers/video/fbdev/i740fb.c @@ -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); |