]> git.pld-linux.org Git - packages/eagle-usb.git/blob - eagle-usb-usb_kill_urb.patch
- use ueagle-atm4.spec
[packages/eagle-usb.git] / eagle-usb-usb_kill_urb.patch
1 diff -Nru eagle-usb-2.3.2.orig/driver/eu_eth.c eagle-usb-2.3.2/driver/eu_eth.c
2 --- eagle-usb-2.3.2.orig/driver/eu_eth.c        2005-01-17 22:54:42.000000000 +0200
3 +++ eagle-usb-2.3.2/driver/eu_eth.c     2005-12-14 19:43:29.953273250 +0200
4 @@ -495,11 +495,16 @@
5       * netif_wakequeue:
6      */
7      
8 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
9      ins->urb_write->transfer_flags |= URB_ASYNC_UNLINK;
10      usb_unlink_urb(ins->urb_write);
11  
12      ins->urb_oam_write->transfer_flags |= URB_ASYNC_UNLINK;
13      usb_unlink_urb(ins->urb_oam_write);
14 +#else
15 +    USB_KILL_URB(ins->urb_write);
16 +    USB_KILL_URB(ins->urb_oam_write);
17 +#endif
18      
19      /* We must reset the transaction time to keep the watchdog quiet: */
20      dev->trans_start = jiffies;
21 diff -Nru eagle-usb-2.3.2.orig/driver/Pipes.c eagle-usb-2.3.2/driver/Pipes.c
22 --- eagle-usb-2.3.2.orig/driver/Pipes.c 2005-01-17 22:54:42.000000000 +0200
23 +++ eagle-usb-2.3.2/driver/Pipes.c      2005-12-14 19:43:29.953273250 +0200
24 @@ -919,7 +919,9 @@
25               *  -EINVAL.
26              */
27              urb->status = 0;
28 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
29              urb->transfer_flags &= ~URB_ASYNC_UNLINK;
30 +#endif
31         }
32         else
33         {
This page took 0.042295 seconds and 3 git commands to generate.