V4L/DVB: uvc: Enable USB autosuspend by default on uvcvideo
authorMatthew Garrett <mjg@redhat.com>
Thu, 16 Sep 2010 18:00:04 +0000 (15:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:06:20 +0000 (01:06 -0200)
We've been doing this for a while in Fedora without any complaints.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_driver.c

index 2ac85d8984f025cb0ec9933f87bf00e91bf656dd..93d78f61987524b191a7037059c0a4d827c27a16 100644 (file)
@@ -1820,6 +1820,7 @@ static int uvc_probe(struct usb_interface *intf,
        }
 
        uvc_trace(UVC_TRACE_PROBE, "UVC device initialized.\n");
+       usb_enable_autosuspend(udev);
        return 0;
 
 error: