From eed98d8bd7a4183ec694fb7a171b3e548355c2de Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 12 Apr 2008 20:20:41 +0000 Subject: package/qc-usb: * update to 0.6.6 (closes: #3215) * fix build on linux > 2.6.23 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10796 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/qc-usb/patches/001-linux_2_6.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 package/qc-usb/patches/001-linux_2_6.patch (limited to 'package/qc-usb/patches/001-linux_2_6.patch') diff --git a/package/qc-usb/patches/001-linux_2_6.patch b/package/qc-usb/patches/001-linux_2_6.patch new file mode 100644 index 000000000..d0b8687d3 --- /dev/null +++ b/package/qc-usb/patches/001-linux_2_6.patch @@ -0,0 +1,23 @@ +diff -ruN qc-usb-0.6.6-orig/qc-driver.c qc-usb-0.6.6/qc-driver.c +--- qc-usb-0.6.6-orig/qc-driver.c 2006-10-24 04:06:19.000000000 +0200 ++++ qc-usb-0.6.6/qc-driver.c 2008-04-12 18:01:01.000000000 +0200 +@@ -821,7 +821,9 @@ + if (!cr) goto fail2; + urb->transfer_buffer = kmalloc(qc_i2c_maxbufsize*sizeof(u8), GFP_KERNEL); /* Allocate maximum ever needed */ + if (!urb->transfer_buffer) goto fail3; ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) + spin_lock_init(&urb->lock); ++#endif + urb->complete = qc_i2c_handler; + urb->context = qc; + #if (LINUX_VERSION_CODE= KERNEL_VERSION(2,6,0) + release: qc_v4l_release, -- cgit v1.2.3