From: Nicolas Thill Date: Sat, 12 Apr 2008 22:04:09 +0000 (+0000) Subject: fix build on linux >= 2.6.23 X-Git-Tag: reboot~26781 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e2e1b51b4182925e736a32bfd3072d689e99decd;p=oweals%2Fopenwrt.git fix build on linux >= 2.6.23 SVN-Revision: 10801 --- 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,