summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorKrzysztof Helt <krzysztof.h1@wp.pl>2008-03-10 11:43:37 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-03-10 18:01:18 -0700
commitb614ce8b3c697947d75685f0b9f2059307dde715 (patch)
treec898df0daac662800acfceb456905fe0a881bf6f /drivers/video
parent3acd9d462062bb332073fde90bf9d118ac5a043d (diff)
downloadop-kernel-dev-b614ce8b3c697947d75685f0b9f2059307dde715.zip
op-kernel-dev-b614ce8b3c697947d75685f0b9f2059307dde715.tar.gz
tridentfb: fix memory size detection
Fix memory size multiplier during detection. 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>
Diffstat (limited to 'drivers/video')
-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 5976a1e..0a4e07d 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 */
OpenPOWER on IntegriCloud