Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362949
b: refs/heads/master
c: 7b3d1c8
h: refs/heads/master
i:
  362947: 1490560
v: v3
  • Loading branch information
Tomi Valkeinen committed Apr 24, 2013
1 parent 87fdbd1 commit e436dfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 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: 47f698a9f2fc49711f3a43ca6713e83f0e76ea5e
refs/heads/master: 7b3d1c82417b340c73e416db10770379291010ba
14 changes: 1 addition & 13 deletions trunk/drivers/video/fb-puv3.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,21 +640,9 @@ static int unifb_pan_display(struct fb_var_screeninfo *var,
int unifb_mmap(struct fb_info *info,
struct vm_area_struct *vma)
{
unsigned long size = vma->vm_end - vma->vm_start;
unsigned long offset = vma->vm_pgoff << PAGE_SHIFT;
unsigned long pos = info->fix.smem_start + offset;

if (offset + size > info->fix.smem_len)
return -EINVAL;

vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);

if (io_remap_pfn_range(vma, vma->vm_start, pos >> PAGE_SHIFT, size,
vma->vm_page_prot))
return -EAGAIN;

/* VM_IO | VM_DONTEXPAND | VM_DONTDUMP are set by remap_pfn_range() */
return 0;
return vm_iomap_memory(vma, info->fix.smem_start, info->fix.smem_len);
}

static struct fb_ops unifb_ops = {
Expand Down

0 comments on commit e436dfc

Please sign in to comment.