Commit 17a7b0b4 authored by Lars Svensson's avatar Lars Svensson Committed by Greg Kroah-Hartman
Browse files

fb.h: Provide alternate screen_base pointer

Some drivers use member screen_base of struct fb_info to store non-
__iomem pointers, creating the need for ugly __force typecasts to
avoid sparse warnings. This adds an alternate pointer without the
__iomem qualifyer for this use.
Signed-off-by: default avatarLars Svensson <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent e9f68065
......@@ -483,7 +483,10 @@ struct fb_info {
struct fb_tile_ops *tileops; /* Tile Blitting */
char __iomem *screen_base; /* Virtual address */
union {
char __iomem *screen_base; /* Virtual address */
char *screen_buffer;
unsigned long screen_size; /* Amount of ioremapped VRAM or 0 */
void *pseudo_palette; /* Fake palette of 16 colors */
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