Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176779
b: refs/heads/master
c: d50e257
h: refs/heads/master
i:
  176777: 988187d
  176775: 7ea94ed
v: v3
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Dec 16, 2009
1 parent 764f78c commit fecf016
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: fe2b6032513099b82cd19ef8da5050f02a18d3ec
refs/heads/master: d50e257ee8d1a16ca91f9286120f222d34853c49
7 changes: 3 additions & 4 deletions trunk/drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ void gspca_frame_add(struct gspca_dev *gspca_dev,
j = gspca_dev->fr_queue[i];
gspca_dev->cur_frame = &gspca_dev->frame[j];
}
return;
}
EXPORT_SYMBOL(gspca_frame_add);

Expand All @@ -321,15 +320,15 @@ static int gspca_is_compressed(__u32 format)
return 0;
}

static void *rvmalloc(unsigned long size)
static void *rvmalloc(long size)
{
void *mem;
unsigned long adr;

mem = vmalloc_32(size);
if (mem != NULL) {
adr = (unsigned long) mem;
while ((long) size > 0) {
while (size > 0) {
SetPageReserved(vmalloc_to_page((void *) adr));
adr += PAGE_SIZE;
size -= PAGE_SIZE;
Expand Down Expand Up @@ -1614,7 +1613,7 @@ static int dev_mmap(struct file *file, struct vm_area_struct *vma)
size -= PAGE_SIZE;
}

vma->vm_ops = (struct vm_operations_struct *) &gspca_vm_ops;
vma->vm_ops = &gspca_vm_ops;
vma->vm_private_data = frame;
gspca_vm_open(vma);
ret = 0;
Expand Down

0 comments on commit fecf016

Please sign in to comment.