Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83563
b: refs/heads/master
c: 2e97502
h: refs/heads/master
i:
  83561: 873e7be
  83559: 5c219d2
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Feb 6, 2008
1 parent 2e133c2 commit 0818df9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 0e9045494aa50f34b774a7449dde4128240a7b00
refs/heads/master: 2e9750272cd49732293b6fe771ae110be8d87273
5 changes: 2 additions & 3 deletions trunk/drivers/video/vermilion/vermilion.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ static int vmlfb_check_var_locked(struct fb_var_screeninfo *var,
return -EINVAL;
}

pitch = __ALIGN_MASK((var->xres * var->bits_per_pixel) >> 3, 0x3F);
pitch = ALIGN((var->xres * var->bits_per_pixel) >> 3, 0x40);
mem = pitch * var->yres_virtual;
if (mem > vinfo->vram_contig_size) {
return -ENOMEM;
Expand Down Expand Up @@ -785,8 +785,7 @@ static int vmlfb_set_par_locked(struct vml_info *vinfo)
int clock;

vinfo->bytes_per_pixel = var->bits_per_pixel >> 3;
vinfo->stride =
__ALIGN_MASK(var->xres_virtual * vinfo->bytes_per_pixel, 0x3F);
vinfo->stride = ALIGN(var->xres_virtual * vinfo->bytes_per_pixel, 0x40);
info->fix.line_length = vinfo->stride;

if (!subsys)
Expand Down

0 comments on commit 0818df9

Please sign in to comment.