uvesafb: don't treat mode info retrieval failures as errors
commit9350cc90ca8a72bc1974f76a9922f91ced84a5cf
authorMichal Januszewski <spock@gentoo.org>
Thu, 16 Oct 2008 05:03:47 +0000 (15 22:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:44 +0000 (16 11:21 -0700)
tree5f1b40814ed6f3911b63e7e868045875814d7900
parentc0dd504cea3703c3ec9bfd810e6bd649680afd37
uvesafb: don't treat mode info retrieval failures as errors

Some BIOSes return error codes when queried for information about
modes from their own modelist.  uvesafb treats this as an error
case and bails out.

Change this behavior so that broken modes do not prevent the driver
from working.  Only the failure to retrieve information about any
usable video mode is considered to be an error case.

Signed-off-by: Michal Januszewski <spock@gentoo.org>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/uvesafb.c