Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132183
b: refs/heads/master
c: 16b71fd
h: refs/heads/master
i:
  132181: bb2f21e
  132179: cb5bef8
  132175: 8c148ba
v: v3
  • Loading branch information
Samuel CUELLA authored and Linus Torvalds committed Mar 10, 2009
1 parent ef18404 commit ab2f59a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9233ecc5c4b5f31921d914b3ef3baa3dc1ae4cc6
refs/heads/master: 16b71fdf97599f1b1b7f38418ee9922d9f117396
5 changes: 3 additions & 2 deletions trunk/drivers/video/i810/i810_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@ static int i810_check_params(struct fb_var_screeninfo *var,
struct i810fb_par *par = info->par;
int line_length, vidmem, mode_valid = 0, retval = 0;
u32 vyres = var->yres_virtual, vxres = var->xres_virtual;

/*
* Memory limit
*/
Expand All @@ -1002,12 +1003,12 @@ static int i810_check_params(struct fb_var_screeninfo *var,
if (vidmem > par->fb.size) {
vyres = par->fb.size/line_length;
if (vyres < var->yres) {
vyres = yres;
vyres = info->var.yres;
vxres = par->fb.size/vyres;
vxres /= var->bits_per_pixel >> 3;
line_length = get_line_length(par, vxres,
var->bits_per_pixel);
vidmem = line_length * yres;
vidmem = line_length * info->var.yres;
if (vxres < var->xres) {
printk("i810fb: required video memory, "
"%d bytes, for %dx%d-%d (virtual) "
Expand Down

0 comments on commit ab2f59a

Please sign in to comment.