Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63630
b: refs/heads/master
c: 3fc701d
h: refs/heads/master
v: v3
  • Loading branch information
Krzysztof Helt authored and David S. Miller committed Aug 3, 2007
1 parent 1d5d370 commit 1bbcae5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 63213196fd4b05b9c3539cbe34775c60f1f6fad0
refs/heads/master: 3fc701d5d459f3b83ba874613048d36e91debca2
5 changes: 4 additions & 1 deletion trunk/drivers/video/cg6.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ static int __devinit cg6_probe(struct of_device *op, const struct of_device_id *
struct fb_info *info;
struct cg6_par *par;
int linebytes, err;
int dblbuf;

info = framebuffer_alloc(sizeof(struct cg6_par), &op->dev);

Expand All @@ -698,7 +699,9 @@ static int __devinit cg6_probe(struct of_device *op, const struct of_device_id *
linebytes = of_getintprop_default(dp, "linebytes",
info->var.xres);
par->fbsize = PAGE_ALIGN(linebytes * info->var.yres);
if (of_find_property(dp, "dblbuf", NULL))

dblbuf = of_getintprop_default(dp, "dblbuf", 0);
if (dblbuf)
par->fbsize *= 4;

par->fbc = of_ioremap(&op->resource[0], CG6_FBC_OFFSET,
Expand Down

0 comments on commit 1bbcae5

Please sign in to comment.