summaryrefslogtreecommitdiff
blob: 5b2c469e1ea01aab568c93c15c09a24eb203ec9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- eagle-usb-2.3.1/driver/Pipes.c.orig	2005-01-17 21:54:42.000000000 +0100
+++ eagle-usb-2.3.1/driver/Pipes.c	2005-11-03 21:29:53.000000000 +0100
@@ -919,7 +919,9 @@
              *  -EINVAL.
             */
             urb->status = 0;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
             urb->transfer_flags &= ~URB_ASYNC_UNLINK;
+#endif
 	}
 	else
 	{
--- eagle-usb-2.3.1/driver/eu_eth.c.orig	2005-01-17 21:54:42.000000000 +0100
+++ eagle-usb-2.3.1/driver/eu_eth.c	2005-11-03 21:33:19.000000000 +0100
@@ -495,11 +495,16 @@
      * netif_wakequeue:
     */
     
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
     ins->urb_write->transfer_flags |= URB_ASYNC_UNLINK;
     usb_unlink_urb(ins->urb_write);
 
     ins->urb_oam_write->transfer_flags |= URB_ASYNC_UNLINK;
     usb_unlink_urb(ins->urb_oam_write);
+#else
+    USB_KILL_URB(ins->urb_write);
+    USB_KILL_URB(ins->urb_oam_write);
+#endif
     
     /* We must reset the transaction time to keep the watchdog quiet: */
     dev->trans_start = jiffies;