Hi,

On Monday 04 August 2008, Wei-Tsun Sun wrote:
> Better to put them in text form:
>
>
> diff -Naur trunk/uvc_driver.c trunk.new/uvc_driver.c
> --- trunk/uvc_driver.c        2008-08-04 10:50:30.000000000 +0000
> +++ trunk.new/uvc_driver.c    2008-08-04 11:02:57.000000000 +0000
> @@ -1466,8 +1466,8 @@
>  #else
>       vdev->parent = &dev->intf->dev;
>  #endif
> -     vdev->type = 0;
> -     vdev->type2 = 0;
> +//   vdev->type = 0;
> +//   vdev->type2 = 0;
>       vdev->minor = -1;
>       vdev->fops = &uvc_fops;
>       vdev->release = video_device_release;
> diff -Naur trunk/uvc_queue.c trunk.new/uvc_queue.c
> --- trunk/uvc_queue.c 2008-08-04 10:50:30.000000000 +0000
> +++ trunk.new/uvc_queue.c     2008-08-04 11:02:57.000000000 +0000
> @@ -20,7 +20,7 @@
>  #include <linux/vmalloc.h>
>  #include <linux/wait.h>
>  #include <asm/atomic.h>
> -
> +#include <linux/mm.h>
>  #include "uvcvideo.h"
>
>  /*
> ------------------------------------------------------------------------ @@
> -98,6 +98,7 @@
>               unsigned int buflength)
>  {
>       unsigned int bufsize = PAGE_ALIGN(buflength);
> +//      unsigned int bufsize = buflength;
>       unsigned int i;
>       void *mem = NULL;
>       int ret;

Thanks for the patch. I've applied it to SVN in a slightly modified form to 
compile on older kernels too. Could you please test it ?

Best regards,

Laurent Pinchart
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to