From e0ddf22ec11b32debb9f745e66fe089ef5789f15 Mon Sep 17 00:00:00 2001 From: Cam Mayor Date: Sun, 13 Apr 2003 20:22:24 +0100 Subject: [PATCH] [ARM PATCH] 1453/1: fix clps711x framebuffer "use SRAM?" range Patch from cam mayor when setting up the framebuffer on the clps711x platform, the code checks to see if your allocated memory area is less than 38400 bytes. If it is, a comment is sent to the kernel output suggesting it could be placed into SRAM. This patch modifies the check so that it is suggested if the allocated memory area is less than OR EQUAL TO 38400 bytes. This value is important as 38400 bytes is exactly the size of a 320 x 240 x 4bpp screen. --- drivers/video/clps711xfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/clps711xfb.c b/drivers/video/clps711xfb.c index e54209c0728bd..a982e75204237 100644 --- a/drivers/video/clps711xfb.c +++ b/drivers/video/clps711xfb.c @@ -342,7 +342,7 @@ static void __init clps711x_guess_lcd_params(struct fb_info *info) * CLPS7110 - no on-board SRAM * EP7212 - 38400 bytes */ - if (size < 38400) { + if (size <= 38400) { printk(KERN_INFO "CLPS711xFB: could use on-board SRAM?\n"); } -- 2.53.0