From 162a61e857e225d66fcc1763ce74fb9a9f48e928 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 18 Jan 2004 18:29:37 -0800 Subject: [PATCH] [PATCH] fix for tridentfb.c usage on CRTs. From: Bram Stolk All modes that exceed the native resolution of a flatpanel are discarded. However, a CRT has native resolution set to 0, and therefore, tridentfb.c cannot be used with a CRT. --- drivers/video/tridentfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c index ae6d3c93e228b..500e97766989d 100644 --- a/drivers/video/tridentfb.c +++ b/drivers/video/tridentfb.c @@ -723,7 +723,7 @@ static int tridentfb_check_var(struct fb_var_screeninfo *var, struct fb_info *in if (bpp == 24 ) bpp = var->bits_per_pixel = 32; /* check whether resolution fits on panel and in memory*/ - if (var->xres > nativex) + if (flatpanel && nativex && var->xres > nativex) return -EINVAL; if (var->xres * var->yres_virtual * bpp/8 > info->fix.smem_len) return -EINVAL; -- 2.53.0