diff options
Diffstat (limited to 'linux/drivers/media/video/w9968cf.c')
-rw-r--r-- | linux/drivers/media/video/w9968cf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/video/w9968cf.c b/linux/drivers/media/video/w9968cf.c index 2912326a5..0a9e1d462 100644 --- a/linux/drivers/media/video/w9968cf.c +++ b/linux/drivers/media/video/w9968cf.c @@ -417,7 +417,11 @@ static int w9968cf_write_fsb(struct w9968cf_device*, u16* data); static int w9968cf_write_sb(struct w9968cf_device*, u16 value); static int w9968cf_read_sb(struct w9968cf_device*); static int w9968cf_upload_quantizationtables(struct w9968cf_device*); +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) static void w9968cf_urb_complete(struct urb *urb, struct pt_regs *regs); +#else +static void w9968cf_urb_complete(struct urb *urb); +#endif /* Low-level I2C (SMBus) I/O */ static int w9968cf_smbus_start(struct w9968cf_device*); @@ -781,7 +785,11 @@ static int w9968cf_allocate_memory(struct w9968cf_device* cam) If there are no requested frames in the FIFO list, packets are collected into a temporary buffer. --------------------------------------------------------------------------*/ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) static void w9968cf_urb_complete(struct urb *urb, struct pt_regs *regs) +#else +static void w9968cf_urb_complete(struct urb *urb) +#endif { struct w9968cf_device* cam = (struct w9968cf_device*)urb->context; struct w9968cf_frame_t** f; |