aboutsummaryrefslogtreecommitdiffstats
path: root/package/spca5xx-le
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2008-04-12 22:04:09 +0000
committerNicolas Thill <nico@openwrt.org>2008-04-12 22:04:09 +0000
commit93b986d8a347faa7165141b6f99609953d935e45 (patch)
treebec5c21c13329e86e5863d69e066918f427f0cd9 /package/spca5xx-le
parent380ae5f836271490846e34b2c6d538a854b5c4a7 (diff)
downloadmaster-187ad058-93b986d8a347faa7165141b6f99609953d935e45.tar.gz
master-187ad058-93b986d8a347faa7165141b6f99609953d935e45.tar.bz2
master-187ad058-93b986d8a347faa7165141b6f99609953d935e45.zip
fix build on linux >= 2.6.23
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10801 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/spca5xx-le')
-rw-r--r--package/spca5xx-le/patches/101-linux_2_6.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/spca5xx-le/patches/101-linux_2_6.patch b/package/spca5xx-le/patches/101-linux_2_6.patch
new file mode 100644
index 0000000000..be0679f678
--- /dev/null
+++ b/package/spca5xx-le/patches/101-linux_2_6.patch
@@ -0,0 +1,13 @@
+diff -ruN spca5xx-le-orig/spca_core.c spca5xx-le/spca_core.c
+--- spca5xx-le-orig/spca_core.c 2008-04-12 18:09:57.000000000 +0200
++++ spca5xx-le/spca_core.c 2008-04-12 18:16:45.000000000 +0200
+@@ -2799,7 +2799,9 @@
+ .owner = THIS_MODULE,
+ .name = "SPCA5XX USB Camera",
+ .type = VID_TYPE_CAPTURE,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+ .hardware = VID_HARDWARE_SPCA5XX,
++#endif
+ .fops = &spca5xx_fops,
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
+ .release = video_device_release,