[PATCH] tridentfb: fix memory size detection

DORMANTno replies

From: Krzysztof Helt <hidden>
Date: 2008-03-05 21:01:14

From: Krzysztof Helt <redacted>

Tiny patch which fixes memory size multiplier
during detection.

Signed-off-by: Krzysztof Helt <redacted>
---


diff -urp linux-ref/drivers/video/tridentfb.c linux-2.6.23/drivers/video/tridentfb.c
--- linux-ref/drivers/video/tridentfb.c	2007-11-01 14:07:27.461666762 +0100
+++ linux-2.6.23/drivers/video/tridentfb.c	2007-11-01 15:02:17.622078751 +0100
@@ -755,7 +754,7 @@ static unsigned int __devinit get_memsiz
 			switch (tmp) {
 
 			case 0x01:
-				k = 512;
+				k = 512 * Kb;
 				break;
 			case 0x02:
 				k = 6 * Mb;	/* XP */

----------------------------------------------------------------------
Kochasz kobiety? Nie zapomnij o nich!
kliknij >> http://link.interia.pl/f1d47 	



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help