Skip to content

Commit

Permalink
[PATCH] savagefb iomem annotations
Browse files Browse the repository at this point in the history
trivial iomem annotations + memset() replaced with memset_io() in a
place that deals with ioremapped area. 

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Apr 26, 2005
1 parent 9727d04 commit 0d3e8fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/video/savage/savagefb_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ static int __devinit savage_map_mmio (struct fb_info *info)
info->fix.mmio_start = par->mmio.pbase;
info->fix.mmio_len = par->mmio.len;

par->bci_base = (u32*)(par->mmio.vbase + BCI_BUFFER_OFFSET);
par->bci_base = (u32 __iomem *)(par->mmio.vbase + BCI_BUFFER_OFFSET);
par->bci_ptr = 0;

savage_enable_mmio (par);
Expand All @@ -1514,7 +1514,7 @@ static void __devinit savage_unmap_mmio (struct fb_info *info)
savage_disable_mmio(par);

if (par->mmio.vbase) {
iounmap ((void *)par->mmio.vbase);
iounmap(par->mmio.vbase);
par->mmio.vbase = NULL;
}
}
Expand Down Expand Up @@ -1553,7 +1553,7 @@ static int __devinit savage_map_video (struct fb_info *info,
#endif

/* Clear framebuffer, it's all white in memory after boot */
memset (par->video.vbase, 0, par->video.len);
memset_io (par->video.vbase, 0, par->video.len);

return 0;
}
Expand Down

0 comments on commit 0d3e8fe

Please sign in to comment.