From: Jean-Francois Moine Date: Wed, 3 Sep 2008 20:12:13 +0000 (-0300) Subject: V4L/DVB (8810): gspca: Compile error when CONFIG_PM not defined. X-Git-Tag: v2.6.27-rc6~37^2~4^2~35 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=62ee8eeebd1bf6c29977800ac18dfcecf584d42e;p=linux-2.6-omap-h63xx.git V4L/DVB (8810): gspca: Compile error when CONFIG_PM not defined. Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index bffddf52775..28842ed24c0 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c @@ -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 ? */ }