]> git.baikalelectronics.ru Git - kernel.git/commit
tridentfb: resource management fixes in probe function
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Tue, 4 Mar 2008 22:28:39 +0000 (14:28 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Mar 2008 00:35:12 +0000 (16:35 -0800)
commit3e7bb436478e493a7d72749fdb21db18cd6b3a61
tree1cd65f3b9151e245fc89abe31eaf7d4cccef91fe
parentede4b8db5cb797edecad3d2184ea0ba578d21494
tridentfb: resource management fixes in probe function

Correct error paths in probe function.

The probe function enables mmio mode so it important to disable the mmio
mode before exiting the probe function.  Otherwise, the console is left in
unusable state (garbled fonts at least, lock up at worst).

[akpm@linux-foundation.org: cleanups]
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
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/tridentfb.c