Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321022
b: refs/heads/master
c: 3b9cc4e
h: refs/heads/master
v: v3
  • Loading branch information
Aditya Nellutla authored and Florian Tobias Schandinat committed Jun 27, 2012
1 parent 4a78789 commit b16c8f9
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: 41a490ec019fd172f5d0356e01d8101b4708aee2
refs/heads/master: 3b9cc4ea4735d3c73ee27ef7b829b6fe4535eefe
5 changes: 4 additions & 1 deletion trunk/drivers/video/da8xx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <linux/cpufreq.h>
#include <linux/console.h>
#include <linux/slab.h>
#include <linux/lcm.h>
#include <video/da8xx-fb.h>
#include <asm/div64.h>

Expand Down Expand Up @@ -1114,6 +1115,7 @@ static int __devinit fb_probe(struct platform_device *device)
struct da8xx_fb_par *par;
resource_size_t len;
int ret, i;
unsigned long ulcm;

if (fb_pdata == NULL) {
dev_err(&device->dev, "Can not get platform data\n");
Expand Down Expand Up @@ -1209,7 +1211,8 @@ static int __devinit fb_probe(struct platform_device *device)

/* allocate frame buffer */
par->vram_size = lcdc_info->width * lcdc_info->height * lcd_cfg->bpp;
par->vram_size = PAGE_ALIGN(par->vram_size/8);
ulcm = lcm((lcdc_info->width * lcd_cfg->bpp)/8, PAGE_SIZE);
par->vram_size = roundup(par->vram_size/8, ulcm);
par->vram_size = par->vram_size * LCD_NUM_BUFFERS;

par->vram_virt = dma_alloc_coherent(NULL,
Expand Down

0 comments on commit b16c8f9

Please sign in to comment.