aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/zoran
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/zoran')
-rw-r--r--drivers/media/video/zoran/zoran.h4
-rw-r--r--drivers/media/video/zoran/zoran_driver.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/video/zoran/zoran.h b/drivers/media/video/zoran/zoran.h
index d7166afc255e..ca2754a3cd63 100644
--- a/drivers/media/video/zoran/zoran.h
+++ b/drivers/media/video/zoran/zoran.h
@@ -172,8 +172,10 @@ struct zoran_jpg_settings {
172 struct v4l2_jpegcompression jpg_comp; /* JPEG-specific capture settings */ 172 struct v4l2_jpegcompression jpg_comp; /* JPEG-specific capture settings */
173}; 173};
174 174
175struct zoran_fh;
176
175struct zoran_mapping { 177struct zoran_mapping {
176 struct file *file; 178 struct zoran_fh *fh;
177 int count; 179 int count;
178}; 180};
179 181
diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c
index c57310931810..c6ccdeb6d8d6 100644
--- a/drivers/media/video/zoran/zoran_driver.c
+++ b/drivers/media/video/zoran/zoran_driver.c
@@ -2811,7 +2811,7 @@ static void
2811zoran_vm_close (struct vm_area_struct *vma) 2811zoran_vm_close (struct vm_area_struct *vma)
2812{ 2812{
2813 struct zoran_mapping *map = vma->vm_private_data; 2813 struct zoran_mapping *map = vma->vm_private_data;
2814 struct zoran_fh *fh = map->file->private_data; 2814 struct zoran_fh *fh = map->fh;
2815 struct zoran *zr = fh->zr; 2815 struct zoran *zr = fh->zr;
2816 int i; 2816 int i;
2817 2817
@@ -2938,7 +2938,7 @@ zoran_mmap (struct file *file,
2938 res = -ENOMEM; 2938 res = -ENOMEM;
2939 goto mmap_unlock_and_return; 2939 goto mmap_unlock_and_return;
2940 } 2940 }
2941 map->file = file; 2941 map->fh = fh;
2942 map->count = 1; 2942 map->count = 1;
2943 2943
2944 vma->vm_ops = &zoran_vm_ops; 2944 vma->vm_ops = &zoran_vm_ops;