aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/pwc/pwc-if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c
index a7c2e7284c20..7c542caf248e 100644
--- a/drivers/media/video/pwc/pwc-if.c
+++ b/drivers/media/video/pwc/pwc-if.c
@@ -1125,6 +1125,7 @@ static int pwc_video_open(struct file *file)
1125 } 1125 }
1126 1126
1127 mutex_lock(&pdev->modlock); 1127 mutex_lock(&pdev->modlock);
1128 pwc_construct(pdev); /* set min/max sizes correct */
1128 if (!pdev->usb_init) { 1129 if (!pdev->usb_init) {
1129 PWC_DEBUG_OPEN("Doing first time initialization.\n"); 1130 PWC_DEBUG_OPEN("Doing first time initialization.\n");
1130 pdev->usb_init = 1; 1131 pdev->usb_init = 1;
@@ -1149,7 +1150,6 @@ static int pwc_video_open(struct file *file)
1149 if (pwc_set_leds(pdev, led_on, led_off) < 0) 1150 if (pwc_set_leds(pdev, led_on, led_off) < 0)
1150 PWC_DEBUG_OPEN("Failed to set LED on/off time.\n"); 1151 PWC_DEBUG_OPEN("Failed to set LED on/off time.\n");
1151 1152
1152 pwc_construct(pdev); /* set min/max sizes correct */
1153 1153
1154 /* So far, so good. Allocate memory. */ 1154 /* So far, so good. Allocate memory. */
1155 i = pwc_allocate_buffers(pdev); 1155 i = pwc_allocate_buffers(pdev);