aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-video.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx88/cx88-video.c')
-rw-r--r--drivers/media/video/cx88/cx88-video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c
index 19c64a7d0985..c19ec71abc03 100644
--- a/drivers/media/video/cx88/cx88-video.c
+++ b/drivers/media/video/cx88/cx88-video.c
@@ -752,7 +752,7 @@ static int video_open(struct file *file)
752{ 752{
753 struct video_device *vdev = video_devdata(file); 753 struct video_device *vdev = video_devdata(file);
754 struct cx8800_dev *dev = video_drvdata(file); 754 struct cx8800_dev *dev = video_drvdata(file);
755 struct cx88_core *core; 755 struct cx88_core *core = dev->core;
756 struct cx8800_fh *fh; 756 struct cx8800_fh *fh;
757 enum v4l2_buf_type type = 0; 757 enum v4l2_buf_type type = 0;
758 int radio = 0; 758 int radio = 0;
@@ -786,7 +786,6 @@ static int video_open(struct file *file)
786 fh->fmt = format_by_fourcc(V4L2_PIX_FMT_BGR24); 786 fh->fmt = format_by_fourcc(V4L2_PIX_FMT_BGR24);
787 787
788 mutex_lock(&core->lock); 788 mutex_lock(&core->lock);
789 core = dev->core;
790 789
791 videobuf_queue_sg_init(&fh->vidq, &cx8800_video_qops, 790 videobuf_queue_sg_init(&fh->vidq, &cx8800_video_qops,
792 &dev->pci->dev, &dev->slock, 791 &dev->pci->dev, &dev->slock,