patch-2.4.4 linux/drivers/usb/devio.c

Next file: linux/drivers/usb/hid.c
Previous file: linux/drivers/usb/dc2xx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/drivers/usb/devio.c linux/drivers/usb/devio.c
@@ -175,6 +175,7 @@
                 return NULL;
         memset(as, 0, assize);
         as->urb.number_of_packets = numisoframes;
+        spin_lock_init(&as->urb.lock);
         return as;
 }
 
@@ -250,10 +251,6 @@
         struct dev_state *ps = as->ps;
 	struct siginfo sinfo;
 
-#if 1
-	printk(KERN_DEBUG "usbdevfs: async_completed: status %d errcount %d actlen %d pipe 0x%x\n", 
-	       urb->status, urb->error_count, urb->actual_length, urb->pipe);
-#endif
         spin_lock(&ps->lock);
         list_del(&as->asynclist);
         list_add_tail(&as->asynclist, &ps->async_completed);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)