Commit 8ffb28e4 authored by Antonino Daplas's avatar Antonino Daplas Committed by Linus Torvalds

[PATCH] fbdev: Fix mode handling in rivafb if with no EDID

The current code in rivafb will not accept modes other than 640x480-60 if
the the EDID block is absent.

This patch changes the behavior to the opposite, if without an EDID, rivafb
will accept all modelines coming from userspace (2.4 behavior).
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1c8b02d9
......@@ -1126,7 +1126,7 @@ static int rivafb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
}
}
if (!mode_valid && !list_empty(&info->modelist))
if (!mode_valid && info->monspecs.modedb_len)
return -EINVAL;
if (var->xres_virtual < var->xres)
......@@ -2017,7 +2017,6 @@ static int __devinit rivafb_probe(struct pci_dev *pd,
}
fb_destroy_modedb(info->monspecs.modedb);
info->monspecs.modedb_len = 0;
info->monspecs.modedb = NULL;
if (register_framebuffer(info) < 0) {
printk(KERN_ERR PFX
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment