1 diff -ruN qc-usb-0.6.6-orig/qc-driver.c qc-usb-0.6.6/qc-driver.c
2 --- qc-usb-0.6.6-orig/qc-driver.c 2006-10-24 04:06:19.000000000 +0200
3 +++ qc-usb-0.6.6/qc-driver.c 2008-04-12 18:01:01.000000000 +0200
6 urb->transfer_buffer = kmalloc(qc_i2c_maxbufsize*sizeof(u8), GFP_KERNEL); /* Allocate maximum ever needed */
7 if (!urb->transfer_buffer) goto fail3;
8 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
9 spin_lock_init(&urb->lock);
11 urb->complete = qc_i2c_handler;
13 #if (LINUX_VERSION_CODE<KERNEL_VERSION(2,6,9) && !defined(CONFIG_SUSE_KERNEL)) || LINUX_VERSION_CODE<KERNEL_VERSION(2,6,8)
15 static struct video_device qc_v4l_template = {
17 type: VID_TYPE_CAPTURE | VID_TYPE_SUBCAPTURE,
18 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
19 hardware: VID_HARDWARE_QCAM_USB,
22 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
23 release: qc_v4l_release,