aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/zc3xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/zc3xx.c')
-rw-r--r--drivers/media/video/gspca/zc3xx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c
index 0d504a7c512c..f0bacee33ef9 100644
--- a/drivers/media/video/gspca/zc3xx.c
+++ b/drivers/media/video/gspca/zc3xx.c
@@ -5946,8 +5946,11 @@ static void transfer_update(struct work_struct *work)
5946 msleep(100); 5946 msleep(100);
5947 5947
5948 mutex_lock(&gspca_dev->usb_lock); 5948 mutex_lock(&gspca_dev->usb_lock);
5949 if (gspca_dev->frozen || !gspca_dev->dev || 5949#ifdef CONFIG_PM
5950 !gspca_dev->streaming) 5950 if (gspca_dev->frozen)
5951 goto err;
5952#endif
5953 if (!gspca_dev->dev || !gspca_dev->streaming)
5951 goto err; 5954 goto err;
5952 5955
5953 /* Bit 0 of register 11 indicates FIFO overflow */ 5956 /* Bit 0 of register 11 indicates FIFO overflow */