aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Helt <[email protected]>2008-03-10 11:43:37 -0700
committerLinus Torvalds <[email protected]>2008-03-10 18:01:18 -0700
commitb614ce8b3c697947d75685f0b9f2059307dde715 (patch)
treec898df0daac662800acfceb456905fe0a881bf6f
parent3acd9d462062bb332073fde90bf9d118ac5a043d (diff)
tridentfb: fix memory size detection
Fix memory size multiplier during detection. Signed-off-by: Krzysztof Helt <[email protected]> Cc: "Antonino A. Daplas" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--drivers/video/tridentfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c
index 5976a1e40514..0a4e07d43d2d 100644
--- a/drivers/video/tridentfb.c
+++ b/drivers/video/tridentfb.c
@@ -745,7 +745,7 @@ static unsigned int __devinit get_memsize(void)
switch (tmp) {
case 0x01:
- k = 512;
+ k = 512 * Kb;
break;
case 0x02:
k = 6 * Mb; /* XP */