diff mbox

uvc: Enable USB autosuspend by default on uvcvideo

Message ID 1284660004-28158-1-git-send-email-mjg@redhat.com (mailing list archive)
State Accepted
Headers show

Commit Message

Matthew Garrett Sept. 16, 2010, 6 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/uvc/uvc_driver.c b/drivers/media/video/uvc/uvc_driver.c
index 8bdd940..28ed5b4 100644
--- a/drivers/media/video/uvc/uvc_driver.c
+++ b/drivers/media/video/uvc/uvc_driver.c
@@ -1814,6 +1814,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: