Merge branch 'fbdev-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6

* 'fbdev-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6:
  fbdev: Fix fb_find_nearest_mode refresh comparison
This commit is contained in:
Linus Torvalds 2010-12-14 13:37:12 -08:00
commit 1c00802d3f
1 changed files with 1 additions and 0 deletions

View File

@ -855,6 +855,7 @@ const struct fb_videomode *fb_find_nearest_mode(const struct fb_videomode *mode,
abs(cmode->yres - mode->yres); abs(cmode->yres - mode->yres);
if (diff > d) { if (diff > d) {
diff = d; diff = d;
diff_refresh = abs(cmode->refresh - mode->refresh);
best = cmode; best = cmode;
} else if (diff == d) { } else if (diff == d) {
d = abs(cmode->refresh - mode->refresh); d = abs(cmode->refresh - mode->refresh);