From: Krzysztof Helt Date: Mon, 10 Mar 2008 18:43:37 +0000 (-0700) Subject: tridentfb: fix memory size detection X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b614ce8b3c697947d75685f0b9f2059307dde715;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tridentfb: fix memory size detection Fix memory size multiplier during detection. Signed-off-by: Krzysztof Helt Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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 */