diff options
Diffstat (limited to 'drivers/media/video/mx3_camera.c')
-rw-r--r-- | drivers/media/video/mx3_camera.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/media/video/mx3_camera.c b/drivers/media/video/mx3_camera.c index a9be14c23912..29c5fc348133 100644 --- a/drivers/media/video/mx3_camera.c +++ b/drivers/media/video/mx3_camera.c | |||
@@ -185,7 +185,7 @@ static void free_buffer(struct videobuf_queue *vq, struct mx3_camera_buffer *buf | |||
185 | * This waits until this buffer is out of danger, i.e., until it is no | 185 | * This waits until this buffer is out of danger, i.e., until it is no |
186 | * longer in STATE_QUEUED or STATE_ACTIVE | 186 | * longer in STATE_QUEUED or STATE_ACTIVE |
187 | */ | 187 | */ |
188 | videobuf_waiton(vb, 0, 0); | 188 | videobuf_waiton(vq, vb, 0, 0); |
189 | if (txd) { | 189 | if (txd) { |
190 | ichan = to_idmac_chan(txd->chan); | 190 | ichan = to_idmac_chan(txd->chan); |
191 | async_tx_ack(txd); | 191 | async_tx_ack(txd); |
@@ -441,7 +441,8 @@ static void mx3_camera_init_videobuf(struct videobuf_queue *q, | |||
441 | &mx3_cam->lock, | 441 | &mx3_cam->lock, |
442 | V4L2_BUF_TYPE_VIDEO_CAPTURE, | 442 | V4L2_BUF_TYPE_VIDEO_CAPTURE, |
443 | V4L2_FIELD_NONE, | 443 | V4L2_FIELD_NONE, |
444 | sizeof(struct mx3_camera_buffer), icd); | 444 | sizeof(struct mx3_camera_buffer), icd, |
445 | NULL); | ||
445 | } | 446 | } |
446 | 447 | ||
447 | /* First part of ipu_csi_init_interface() */ | 448 | /* First part of ipu_csi_init_interface() */ |
@@ -976,7 +977,7 @@ static int mx3_camera_try_fmt(struct soc_camera_device *icd, | |||
976 | return ret; | 977 | return ret; |
977 | } | 978 | } |
978 | 979 | ||
979 | static int mx3_camera_reqbufs(struct soc_camera_file *icf, | 980 | static int mx3_camera_reqbufs(struct soc_camera_device *icd, |
980 | struct v4l2_requestbuffers *p) | 981 | struct v4l2_requestbuffers *p) |
981 | { | 982 | { |
982 | return 0; | 983 | return 0; |
@@ -984,9 +985,9 @@ static int mx3_camera_reqbufs(struct soc_camera_file *icf, | |||
984 | 985 | ||
985 | static unsigned int mx3_camera_poll(struct file *file, poll_table *pt) | 986 | static unsigned int mx3_camera_poll(struct file *file, poll_table *pt) |
986 | { | 987 | { |
987 | struct soc_camera_file *icf = file->private_data; | 988 | struct soc_camera_device *icd = file->private_data; |
988 | 989 | ||
989 | return videobuf_poll_stream(file, &icf->vb_vidq, pt); | 990 | return videobuf_poll_stream(file, &icd->vb_vidq, pt); |
990 | } | 991 | } |
991 | 992 | ||
992 | static int mx3_camera_querycap(struct soc_camera_host *ici, | 993 | static int mx3_camera_querycap(struct soc_camera_host *ici, |