Commit 06c8faf3 authored by Olaf Hering's avatar Olaf Hering Committed by Linus Torvalds

[PATCH] Fix incorrect __init on 'modedb[]' array

modedb can not be __init because fb_find_mode() (which is not __init)
may get db == NULL.  fb_find_mode() is called from modules. 
Signed-off-by: default avatarOlaf Hering <olh@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e86a9820
......@@ -37,7 +37,7 @@ const char *global_mode_option;
#define DEFAULT_MODEDB_INDEX 0
static const __init struct fb_videomode modedb[] = {
static const struct fb_videomode modedb[] = {
{
/* 640x400 @ 70 Hz, 31.5 kHz hsync */
NULL, 70, 640, 400, 39721, 40, 24, 39, 9, 96, 2,
......
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