]> err.no Git - linux-2.6/commitdiff
V4L/DVB (8810): gspca: Compile error when CONFIG_PM not defined.
authorJean-Francois Moine <moinejf@free.fr>
Wed, 3 Sep 2008 20:12:13 +0000 (17:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 3 Sep 2008 21:37:23 +0000 (18:37 -0300)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c

index bffddf5277591232b439121cbc6eb1cbe6f40e08..28842ed24c090f59d7dee6c7a89536af7a7118fb 100644 (file)
@@ -114,7 +114,9 @@ static void fill_frame(struct gspca_dev *gspca_dev,
        cam_pkt_op pkt_scan;
 
        if (urb->status != 0) {
+#ifdef CONFIG_PM
                if (!gspca_dev->frozen)
+#endif
                        PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status);
                return;         /* disconnection ? */
        }