]> err.no Git - linux-2.6/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)
commite8ed857c64e3ae62e27606ae58bc7371b5daccb1
tree1cd65f3b9151e245fc89abe31eaf7d4cccef91fe
parent00f0b8259e48979c37212995d798f3fbd0374690
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