diff options
author | Laurent Pinchart <laurent.pinchart@skynet.be> | 2008-11-11 17:43:40 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@skynet.be> | 2008-11-11 17:43:40 +0100 |
commit | 2c2545da4d6f060cd6b64c71469a61cd455ba6d9 (patch) | |
tree | 90ce729a1cc83735c7c8a9e425c9f4601e054806 /linux/drivers/media/video/uvc/uvc_ctrl.c | |
parent | 6d66e543c6fd8adfc1495538a68b849999a8cc90 (diff) | |
download | mediapointer-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_ctrl.c')
-rw-r--r-- | linux/drivers/media/video/uvc/uvc_ctrl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/uvc/uvc_ctrl.c b/linux/drivers/media/video/uvc/uvc_ctrl.c index f16aafe9c..9de8a1db5 100644 --- a/linux/drivers/media/video/uvc/uvc_ctrl.c +++ b/linux/drivers/media/video/uvc/uvc_ctrl.c @@ -15,7 +15,9 @@ #include <linux/version.h> #include <linux/list.h> #include <linux/module.h> +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17) #include <linux/uaccess.h> +#endif #include <linux/usb.h> #include <linux/videodev2.h> #include <linux/vmalloc.h> |