aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/savage/savagefb_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/savage/savagefb_driver.c')
-rw-r--r--drivers/video/savage/savagefb_driver.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/drivers/video/savage/savagefb_driver.c b/drivers/video/savage/savagefb_driver.c
index 06e989ba3d13..f0dfb35e3191 100644
--- a/drivers/video/savage/savagefb_driver.c
+++ b/drivers/video/savage/savagefb_driver.c
@@ -2052,24 +2052,11 @@ static int __devinit savagefb_probe (struct pci_dev* dev,
2052 info->monspecs.modedb, info->monspecs.modedb_len, 2052 info->monspecs.modedb, info->monspecs.modedb_len,
2053 NULL, 8); 2053 NULL, 8);
2054 } else if (info->monspecs.modedb != NULL) { 2054 } else if (info->monspecs.modedb != NULL) {
2055 struct fb_monspecs *specs = &info->monspecs; 2055 struct fb_videomode *modedb;
2056 struct fb_videomode modedb;
2057 2056
2058 if (info->monspecs.misc & FB_MISC_1ST_DETAIL) { 2057 modedb = fb_find_best_display(&info->monspecs,
2059 int i; 2058 &info->modelist);
2060 2059 savage_update_var(&info->var, modedb);
2061 for (i = 0; i < specs->modedb_len; i++) {
2062 if (specs->modedb[i].flag & FB_MODE_IS_FIRST) {
2063 modedb = specs->modedb[i];
2064 break;
2065 }
2066 }
2067 } else {
2068 /* otherwise, get first mode in database */
2069 modedb = specs->modedb[0];
2070 }
2071
2072 savage_update_var(&info->var, &modedb);
2073 } 2060 }
2074 2061
2075 /* maximize virtual vertical length */ 2062 /* maximize virtual vertical length */