]> Git Repo - linux.git/blobdiff - drivers/media/usb/gspca/finepix.c
[media] gspca: Don't set gspca_dev->dev to NULL before stop0
[linux.git] / drivers / media / usb / gspca / finepix.c
index c8f2201cc35ad96403230150b999363a7f362a93..04807eee7772a0e9f9a5136a5d6425fcea016a83 100644 (file)
@@ -94,7 +94,7 @@ static void dostream(struct work_struct *work)
 
        /* loop reading a frame */
 again:
-       while (gspca_dev->dev && gspca_dev->streaming) {
+       while (gspca_dev->present && gspca_dev->streaming) {
 #ifdef CONFIG_PM
                if (gspca_dev->frozen)
                        break;
@@ -110,7 +110,7 @@ again:
                if (gspca_dev->frozen)
                        break;
 #endif
-               if (!gspca_dev->dev || !gspca_dev->streaming)
+               if (!gspca_dev->present || !gspca_dev->streaming)
                        break;
 
                /* the frame comes in parts */
@@ -129,7 +129,7 @@ again:
                        if (gspca_dev->frozen)
                                goto out;
 #endif
-                       if (!gspca_dev->dev || !gspca_dev->streaming)
+                       if (!gspca_dev->present || !gspca_dev->streaming)
                                goto out;
                        if (len < FPIX_MAX_TRANSFER ||
                                (data[len - 2] == 0xff &&
This page took 0.028144 seconds and 4 git commands to generate.