fix build on linux >= 2.6.23
[lede-git/.git] / package / spca5xx-le / patches / 101-linux_2_6.patch
1 diff -ruN spca5xx-le-orig/spca_core.c spca5xx-le/spca_core.c
2 --- spca5xx-le-orig/spca_core.c 2008-04-12 18:09:57.000000000 +0200
3 +++ spca5xx-le/spca_core.c      2008-04-12 18:16:45.000000000 +0200
4 @@ -2799,7 +2799,9 @@
5    .owner = THIS_MODULE,
6    .name = "SPCA5XX USB Camera",
7    .type = VID_TYPE_CAPTURE,
8 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
9    .hardware = VID_HARDWARE_SPCA5XX,
10 +#endif
11    .fops = &spca5xx_fops,
12  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
13    .release = video_device_release,