atyfb: correct_chipset() can fail
authorVille Syrjala <syrjala@sci.fi>
Thu, 24 Jul 2008 04:31:30 +0000 (21:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:39 +0000 (10:47 -0700)
commit3880b0b5297ae9bf58a7662d13a46b5d5f0b2af6
treef450fe9d753da590357f9f80a8a6bf2ed63127c6
parent50cd0221c9062ec5dac8a3620f36f568df052ac1
atyfb: correct_chipset() can fail

Atari probe code relies on correct_chipset() failing if the device is not
a mach64 GX/CX.  aty_chips[] array would be indexed with -1 in that case.

Signed-off-by: Ville Syrjala <syrjala@sci.fi>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/aty/atyfb_base.c