aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/meye.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/meye.c')
-rw-r--r--drivers/media/video/meye.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c
index 850bee97090c..f68ca7d9f531 100644
--- a/drivers/media/video/meye.c
+++ b/drivers/media/video/meye.c
@@ -32,6 +32,7 @@
32#include <linux/sched.h> 32#include <linux/sched.h>
33#include <linux/init.h> 33#include <linux/init.h>
34#include <linux/videodev.h> 34#include <linux/videodev.h>
35#include <media/v4l2-common.h>
35#include <asm/uaccess.h> 36#include <asm/uaccess.h>
36#include <asm/io.h> 37#include <asm/io.h>
37#include <linux/delay.h> 38#include <linux/delay.h>
@@ -1682,13 +1683,13 @@ static unsigned int meye_poll(struct file *file, poll_table *wait)
1682 1683
1683static void meye_vm_open(struct vm_area_struct *vma) 1684static void meye_vm_open(struct vm_area_struct *vma)
1684{ 1685{
1685 int idx = (int)vma->vm_private_data; 1686 long idx = (long)vma->vm_private_data;
1686 meye.vma_use_count[idx]++; 1687 meye.vma_use_count[idx]++;
1687} 1688}
1688 1689
1689static void meye_vm_close(struct vm_area_struct *vma) 1690static void meye_vm_close(struct vm_area_struct *vma)
1690{ 1691{
1691 int idx = (int)vma->vm_private_data; 1692 long idx = (long)vma->vm_private_data;
1692 meye.vma_use_count[idx]--; 1693 meye.vma_use_count[idx]--;
1693} 1694}
1694 1695