summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cpia2/cpia2_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/cpia2/cpia2_usb.c')
-rw-r--r--linux/drivers/media/video/cpia2/cpia2_usb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cpia2/cpia2_usb.c b/linux/drivers/media/video/cpia2/cpia2_usb.c
index f4da02941..0d4bb91dc 100644
--- a/linux/drivers/media/video/cpia2/cpia2_usb.c
+++ b/linux/drivers/media/video/cpia2/cpia2_usb.c
@@ -49,7 +49,11 @@ static int frame_sizes[] = {
#define FRAME_SIZE_PER_DESC frame_sizes[cam->cur_alt]
static void process_frame(struct camera_data *cam);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
static void cpia2_usb_complete(struct urb *urb, struct pt_regs *);
+#else
+static void cpia2_usb_complete(struct urb *urb);
+#endif
static int cpia2_usb_probe(struct usb_interface *intf,
const struct usb_device_id *id);
static void cpia2_usb_disconnect(struct usb_interface *intf);
@@ -199,7 +203,11 @@ static void add_COM(struct camera_data *cam)
*
* callback when incoming packet is received
*****************************************************************************/
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
static void cpia2_usb_complete(struct urb *urb, struct pt_regs *regs)
+#else
+static void cpia2_usb_complete(struct urb *urb)
+#endif
{
int i;
unsigned char *cdata;