]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
uvesafb: don't treat valid modes returned byfb_find_mode() as errors
authorMichal Januszewski <spock@gentoo.org>
Mon, 28 Apr 2008 09:15:15 +0000 (02:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:38 +0000 (08:58 -0700)
commit5e72b32d86841e4a4a3045d8e35a39eb53ce7ce2
treedd234ca4c616ac7c3a746fbe8e6a576656ed793a
parente0745ae7210c14e611a1fab2af820a4c2e447de5
uvesafb: don't treat valid modes returned byfb_find_mode() as errors

Don't treat valid modes returned by fb_find_mode() (best-fit modes, default
modes or the first valid mode) as errors.

Currently, when fb_find_mode() finds a valid mode belonging to one of the
above-mentioned classes, uvesafb will ignore it and will try to set a 640x480
video mode.  The expected behaviour (introduced by this patch) would be to use
the valid mode returned by fb_find_mode() instead.

Signed-off-by: Michal Januszewski <spock@gentoo.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/uvesafb.c