Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362951
b: refs/heads/master
c: 5171774
h: refs/heads/master
i:
  362949: e436dfc
  362947: 1490560
  362943: 9377ea2
v: v3
  • Loading branch information
Tomi Valkeinen committed Apr 24, 2013
1 parent 53c9739 commit cd49bf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: 51fc8e8aabf1dc89934743c62069acbbe2016fe9
refs/heads/master: 5171774382959f9a42ecd36bf408f6979effcb6a
14 changes: 4 additions & 10 deletions trunk/drivers/video/vermilion/vermilion.c
Original file line number Diff line number Diff line change
Expand Up @@ -1003,24 +1003,18 @@ static int vmlfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
static int vmlfb_mmap(struct fb_info *info, struct vm_area_struct *vma)
{
struct vml_info *vinfo = container_of(info, struct vml_info, info);
unsigned long size = vma->vm_end - vma->vm_start;
unsigned long offset = vma->vm_pgoff << PAGE_SHIFT;
int ret;

if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT))
return -EINVAL;
if (offset + size > vinfo->vram_contig_size)
return -EINVAL;
ret = vmlfb_vram_offset(vinfo, offset);
if (ret)
return -EINVAL;
offset += vinfo->vram_start;

pgprot_val(vma->vm_page_prot) |= _PAGE_PCD;
pgprot_val(vma->vm_page_prot) &= ~_PAGE_PWT;
if (remap_pfn_range(vma, vma->vm_start, offset >> PAGE_SHIFT,
size, vma->vm_page_prot))
return -EAGAIN;
return 0;

return vm_iomap_memory(vma, vinfo->vram_start,
vinfo->vram_contig_size);
}

static int vmlfb_sync(struct fb_info *info)
Expand Down

0 comments on commit cd49bf6

Please sign in to comment.