aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/modedb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c
index 5df41f6f2b86..53427a734d4b 100644
--- a/drivers/video/modedb.c
+++ b/drivers/video/modedb.c
@@ -610,10 +610,8 @@ done:
610 diff = refresh; 610 diff = refresh;
611 best = -1; 611 best = -1;
612 for (i = 0; i < dbsize; i++) { 612 for (i = 0; i < dbsize; i++) {
613 if ((name_matches(db[i], name, namelen) && 613 if (name_matches(db[i], name, namelen) ||
614 !fb_try_mode(var, info, &db[i], bpp))) 614 (res_specified && res_matches(db[i], xres, yres))) {
615 return 1;
616 if (res_specified && res_matches(db[i], xres, yres)) {
617 if(!fb_try_mode(var, info, &db[i], bpp)) { 615 if(!fb_try_mode(var, info, &db[i], bpp)) {
618 if(!refresh_specified || db[i].refresh == refresh) 616 if(!refresh_specified || db[i].refresh == refresh)
619 return 1; 617 return 1;