1 diff -wbBur qc-usb-0.6.6/qc-driver.c qc-usb-0.6.6.my/qc-driver.c
2 --- qc-usb-0.6.6/qc-driver.c 2006-10-24 02:06:19.000000000 +0000
3 +++ qc-usb-0.6.6.my/qc-driver.c 2011-02-03 15:44:45.000000000 +0000
7 /* {{{ [fold] Includes */
9 +#define UTS_RELEASE ""
14 #include <linux/quickcam.h>
16 #include <linux/version.h>
17 -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)) || (HAVE_UTSRELEASE_H == 1)
18 -#include <linux/utsrelease.h>
20 #include <linux/module.h>
22 #include "qc-memory.h"
26 static LIST_HEAD(quickcam_list); /* Linked list containing all QuickCams */
27 -static DECLARE_MUTEX(quickcam_list_lock); /* Always lock first quickcam_list_lock, then qc->lock */
28 +static struct semaphore quickcam_list_lock; /* Always lock first quickcam_list_lock, then qc->lock */
30 /* Default values for user-specified lookup-table; may be overwritten by user */
31 static unsigned char userlut_contents[QC_LUT_SIZE] = {
33 PRINTK(KERN_WARNING,"Could not register procfs file entry");
36 - entry->owner = THIS_MODULE;
37 +// entry->owner = THIS_MODULE;
39 entry->read_proc = qc_proc_read;
40 entry->write_proc = qc_proc_write;
45 - qc_proc_entry->owner = THIS_MODULE;
46 +// qc_proc_entry->owner = THIS_MODULE;
51 release: qc_v4l_close,
53 // write: qc_v4l_write,
54 - ioctl: qc_v4l_ioctl,
55 + compat_ioctl: qc_v4l_ioctl,
60 PDEBUG("poisoning qc in qc_usb_init");
62 if (qcdebug&QC_DEBUGMUTEX) PDEBUG("init down(%p) in qc_usb_init()", qc);
63 - init_MUTEX_LOCKED(&qc->lock);
64 + sema_init(&qc->lock, 1);
66 if ((r=qc_i2c_init(qc))<0) goto fail2;
68 diff -wbBur qc-usb-0.6.6/qc-memory.c qc-usb-0.6.6.my/qc-memory.c
69 --- qc-usb-0.6.6/qc-memory.c 2006-11-04 13:34:32.000000000 +0000
70 +++ qc-usb-0.6.6.my/qc-memory.c 2011-02-03 15:45:30.000000000 +0000
74 /* {{{ [fold] Includes */
75 -#include <linux/autoconf.h>
76 +#include <generated/autoconf.h>
77 #include <linux/version.h>
80 diff -wbBur qc-usb-0.6.6/quickcam.h qc-usb-0.6.6.my/quickcam.h
81 --- qc-usb-0.6.6/quickcam.h 2006-11-04 13:38:27.000000000 +0000
82 +++ qc-usb-0.6.6.my/quickcam.h 2011-02-03 15:38:57.000000000 +0000
87 -#include <linux/autoconf.h>
88 +#include <generated/autoconf.h>
89 #include <linux/version.h>