diff options
-rw-r--r-- | drivers/video/fbmem.c | 4 | ||||
-rw-r--r-- | drivers/video/modedb.c | 4 | ||||
-rw-r--r-- | include/linux/fb.h | 1 |
3 files changed, 4 insertions, 5 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index db0c34863849..1194f5e060ea 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -1567,8 +1567,6 @@ int fb_new_modelist(struct fb_info *info) | |||
1567 | static char *video_options[FB_MAX] __read_mostly; | 1567 | static char *video_options[FB_MAX] __read_mostly; |
1568 | static int ofonly __read_mostly; | 1568 | static int ofonly __read_mostly; |
1569 | 1569 | ||
1570 | extern const char *global_mode_option; | ||
1571 | |||
1572 | /** | 1570 | /** |
1573 | * fb_get_options - get kernel boot parameters | 1571 | * fb_get_options - get kernel boot parameters |
1574 | * @name: framebuffer name as it would appear in | 1572 | * @name: framebuffer name as it would appear in |
@@ -1636,7 +1634,7 @@ static int __init video_setup(char *options) | |||
1636 | } | 1634 | } |
1637 | 1635 | ||
1638 | if (!global && !strstr(options, "fb:")) { | 1636 | if (!global && !strstr(options, "fb:")) { |
1639 | global_mode_option = options; | 1637 | fb_mode_option = options; |
1640 | global = 1; | 1638 | global = 1; |
1641 | } | 1639 | } |
1642 | 1640 | ||
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c index 03b06aa2475f..42f5d76a8777 100644 --- a/drivers/video/modedb.c +++ b/drivers/video/modedb.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #define DPRINTK(fmt, args...) | 27 | #define DPRINTK(fmt, args...) |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | const char *global_mode_option; | 30 | const char *fb_mode_option; |
31 | 31 | ||
32 | /* | 32 | /* |
33 | * Standard video mode definitions (taken from XFree86) | 33 | * Standard video mode definitions (taken from XFree86) |
@@ -510,7 +510,7 @@ int fb_find_mode(struct fb_var_screeninfo *var, | |||
510 | default_bpp = 8; | 510 | default_bpp = 8; |
511 | 511 | ||
512 | /* Did the user specify a video mode? */ | 512 | /* Did the user specify a video mode? */ |
513 | if (mode_option || (mode_option = global_mode_option)) { | 513 | if (mode_option || (mode_option = fb_mode_option)) { |
514 | const char *name = mode_option; | 514 | const char *name = mode_option; |
515 | unsigned int namelen = strlen(name); | 515 | unsigned int namelen = strlen(name); |
516 | int res_specified = 0, bpp_specified = 0, refresh_specified = 0; | 516 | int res_specified = 0, bpp_specified = 0, refresh_specified = 0; |
diff --git a/include/linux/fb.h b/include/linux/fb.h index 672927209255..58c57a33e5dd 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
@@ -1056,6 +1056,7 @@ struct fb_videomode { | |||
1056 | u32 flag; | 1056 | u32 flag; |
1057 | }; | 1057 | }; |
1058 | 1058 | ||
1059 | extern const char *fb_mode_option; | ||
1059 | extern const struct fb_videomode vesa_modes[]; | 1060 | extern const struct fb_videomode vesa_modes[]; |
1060 | 1061 | ||
1061 | struct fb_modelist { | 1062 | struct fb_modelist { |