diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-12-21 22:56:10 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-12-21 22:56:10 -0500 |
commit | 7ccbefe07ea0a3570e44d1ec13a307552ee4dadd (patch) | |
tree | ba0299694a9f3940f289b6a29cadab853906e3d2 /drivers/video/modedb.c | |
parent | 623eb15647fc35c5a8cd38985d5958240eb072c1 (diff) | |
parent | 90a8a73c06cc32b609a880d48449d7083327e11a (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/video/modedb.c')
-rw-r--r-- | drivers/video/modedb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c index c3a182581c1f..7a61ba6a4850 100644 --- a/drivers/video/modedb.c +++ b/drivers/video/modedb.c | |||
@@ -902,6 +902,7 @@ const struct fb_videomode *fb_find_nearest_mode(const struct fb_videomode *mode, | |||
902 | abs(cmode->yres - mode->yres); | 902 | abs(cmode->yres - mode->yres); |
903 | if (diff > d) { | 903 | if (diff > d) { |
904 | diff = d; | 904 | diff = d; |
905 | diff_refresh = abs(cmode->refresh - mode->refresh); | ||
905 | best = cmode; | 906 | best = cmode; |
906 | } else if (diff == d) { | 907 | } else if (diff == d) { |
907 | d = abs(cmode->refresh - mode->refresh); | 908 | d = abs(cmode->refresh - mode->refresh); |