Skip to content

Commit

Permalink
tridentfb: fix memory size detection
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Mar 11, 2008
1 parent 3acd9d4 commit b614ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/tridentfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b614ce8

Please sign in to comment.