summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/uvc/uvc_driver.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@skynet.be>2008-11-11 17:43:40 +0100
committerLaurent Pinchart <laurent.pinchart@skynet.be>2008-11-11 17:43:40 +0100
commit2c2545da4d6f060cd6b64c71469a61cd455ba6d9 (patch)
tree90ce729a1cc83735c7c8a9e425c9f4601e054806 /linux/drivers/media/video/uvc/uvc_driver.c
parent6d66e543c6fd8adfc1495538a68b849999a8cc90 (diff)
downloadmediapointer-dvb-s2-2c2545da4d6f060cd6b64c71469a61cd455ba6d9.tar.gz
mediapointer-dvb-s2-2c2545da4d6f060cd6b64c71469a61cd455ba6d9.tar.bz2
uvcvideo: Enable compilation on kernels older than 2.6.22
From: Laurent Pinchart <laurent.pinchart@skynet.be> The uvcvideo driver makes use of the usb_endpoint_* functions as well as the list_first_entry and uninitialized_var macros. Add them to v4l/compat.h and update the driver with kernel version-based conditional compilation sections. Priority: normal Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Diffstat (limited to 'linux/drivers/media/video/uvc/uvc_driver.c')
-rw-r--r--linux/drivers/media/video/uvc/uvc_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/uvc/uvc_driver.c b/linux/drivers/media/video/uvc/uvc_driver.c
index 2760ddb96..046b98871 100644
--- a/linux/drivers/media/video/uvc/uvc_driver.c
+++ b/linux/drivers/media/video/uvc/uvc_driver.c
@@ -1915,7 +1915,9 @@ struct uvc_driver uvc_driver = {
.reset_resume = uvc_reset_resume,
#endif
.id_table = uvc_ids,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)
.supports_autosuspend = 1,
+#endif
},
};