Google
  Web www.spinics.net

Re: [linuxtv-commits] [hg:v4l-dvb] uvcvideo: Implement the USB power management reset_resume method.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


The USB reset_resume method appeared in 2.6.23. This patch fixes compilation
of the v4l-dvb tree on older kernels.

--- linux/drivers/media/video/uvc/uvc_driver.c	2008-08-31 22:47:19.000000000 +0200
+++ linux/drivers/media/video/uvc/uvc_driver.c	2008-08-31 22:49:00.000000000 +0200
@@ -1692,10 +1692,12 @@
 	return __uvc_resume(intf, 0);
 }
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
 static int uvc_reset_resume(struct usb_interface *intf)
 {
 	return __uvc_resume(intf, 1);
 }
+#endif
 
 /* ------------------------------------------------------------------------
  * Driver initialization and cleanup
@@ -1971,7 +1973,9 @@
 		.disconnect	= uvc_disconnect,
 		.suspend	= uvc_suspend,
 		.resume		= uvc_resume,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
 		.reset_resume	= uvc_reset_resume,
+#endif
 		.id_table	= uvc_ids,
 		.supports_autosuspend = 1,
 	},
--

Laurent Pinchart

_______________________________________________
v4l-dvb-maintainer mailing list
v4l-dvb-maintainer@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/v4l-dvb-maintainer

[Linux Media]     [Older V4L]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [SSH]     [Linux USB]

-->
Add to Google Powered by Linux

Google PageRank Checking tool