diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-01-24 06:47:48 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-01-24 06:47:48 -0500 |
commit | befddb21c845f8fb49e637997891ef97c6a869dc (patch) | |
tree | 0e7629123184f2dd50291ad6d477b894175f0f26 /drivers/media/usb/pwc/pwc-if.c | |
parent | e716efde75267eab919cdb2bef5b2cb77f305326 (diff) | |
parent | 7d1f9aeff1ee4a20b1aeb377dd0f579fe9647619 (diff) |
Merge tag 'v3.8-rc4' into irq/core
Merge Linux 3.8-rc4 before pulling in new commits - we were on an old v3.7 base.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/media/usb/pwc/pwc-if.c')
-rw-r--r-- | drivers/media/usb/pwc/pwc-if.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c index 42e36bac4d72..5210239cbaee 100644 --- a/drivers/media/usb/pwc/pwc-if.c +++ b/drivers/media/usb/pwc/pwc-if.c | |||
@@ -155,7 +155,7 @@ static struct video_device pwc_template = { | |||
155 | /***************************************************************************/ | 155 | /***************************************************************************/ |
156 | /* Private functions */ | 156 | /* Private functions */ |
157 | 157 | ||
158 | struct pwc_frame_buf *pwc_get_next_fill_buf(struct pwc_device *pdev) | 158 | static struct pwc_frame_buf *pwc_get_next_fill_buf(struct pwc_device *pdev) |
159 | { | 159 | { |
160 | unsigned long flags = 0; | 160 | unsigned long flags = 0; |
161 | struct pwc_frame_buf *buf = NULL; | 161 | struct pwc_frame_buf *buf = NULL; |
@@ -1000,7 +1000,11 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id | |||
1000 | pdev->vb_queue.buf_struct_size = sizeof(struct pwc_frame_buf); | 1000 | pdev->vb_queue.buf_struct_size = sizeof(struct pwc_frame_buf); |
1001 | pdev->vb_queue.ops = &pwc_vb_queue_ops; | 1001 | pdev->vb_queue.ops = &pwc_vb_queue_ops; |
1002 | pdev->vb_queue.mem_ops = &vb2_vmalloc_memops; | 1002 | pdev->vb_queue.mem_ops = &vb2_vmalloc_memops; |
1003 | vb2_queue_init(&pdev->vb_queue); | 1003 | rc = vb2_queue_init(&pdev->vb_queue); |
1004 | if (rc < 0) { | ||
1005 | PWC_ERROR("Oops, could not initialize vb2 queue.\n"); | ||
1006 | goto err_free_mem; | ||
1007 | } | ||
1004 | 1008 | ||
1005 | /* Init video_device structure */ | 1009 | /* Init video_device structure */ |
1006 | memcpy(&pdev->vdev, &pwc_template, sizeof(pwc_template)); | 1010 | memcpy(&pdev->vdev, &pwc_template, sizeof(pwc_template)); |