summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-08-22 19:27:49 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-08-22 19:27:49 +0200
commit2019504e7d4a9558886c6327b9f6c684e9f5b252 (patch)
tree71d7c2e62e6ce37f8878369706dc17bcf2756e6b /linux
parent49b246f5997fab551b7b8b5122078b6977d082fc (diff)
downloadmediapointer-dvb-s2-2019504e7d4a9558886c6327b9f6c684e9f5b252.tar.gz
mediapointer-dvb-s2-2019504e7d4a9558886c6327b9f6c684e9f5b252.tar.bz2
gspca: Compile error when CONFIG_PM not defined.
From: Jean-Francois Moine <moinejf@free.fr> Priority: high Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/gspca/gspca.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/gspca.c b/linux/drivers/media/video/gspca/gspca.c
index 731957af3..bb20b8552 100644
--- a/linux/drivers/media/video/gspca/gspca.c
+++ b/linux/drivers/media/video/gspca/gspca.c
@@ -118,7 +118,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 ? */
}