diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/modedb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c index d1267904c280..5df41f6f2b86 100644 --- a/drivers/video/modedb.c +++ b/drivers/video/modedb.c | |||
@@ -34,8 +34,6 @@ const char *global_mode_option; | |||
34 | * Standard video mode definitions (taken from XFree86) | 34 | * Standard video mode definitions (taken from XFree86) |
35 | */ | 35 | */ |
36 | 36 | ||
37 | #define DEFAULT_MODEDB_INDEX 0 | ||
38 | |||
39 | static const struct fb_videomode modedb[] = { | 37 | static const struct fb_videomode modedb[] = { |
40 | { | 38 | { |
41 | /* 640x400 @ 70 Hz, 31.5 kHz hsync */ | 39 | /* 640x400 @ 70 Hz, 31.5 kHz hsync */ |
@@ -505,8 +503,10 @@ int fb_find_mode(struct fb_var_screeninfo *var, | |||
505 | db = modedb; | 503 | db = modedb; |
506 | dbsize = ARRAY_SIZE(modedb); | 504 | dbsize = ARRAY_SIZE(modedb); |
507 | } | 505 | } |
506 | |||
508 | if (!default_mode) | 507 | if (!default_mode) |
509 | default_mode = &modedb[DEFAULT_MODEDB_INDEX]; | 508 | default_mode = &db[0]; |
509 | |||
510 | if (!default_bpp) | 510 | if (!default_bpp) |
511 | default_bpp = 8; | 511 | default_bpp = 8; |
512 | 512 | ||