X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fusb%2Fserial%2Fomninet.c;h=a764ff4e326cfb2c6695af4e226b9389a3a5e866;hb=efd54a364121f61b2050b1df5ecb1b8329c4eaba;hp=238033a87092fc841c7c6ac225ff921ec381139a;hpb=d90125bfe958ed0451c6b98f831c86aba08b43d5;p=powerpc.git diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index 238033a870..a764ff4e32 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c @@ -35,7 +35,6 @@ * */ -#include #include #include #include @@ -47,7 +46,7 @@ #include #include #include -#include "usb-serial.h" +#include static int debug; @@ -257,14 +256,14 @@ static int omninet_write (struct usb_serial_port *port, const unsigned char *buf return (0); } - spin_lock(&wport->lock); + spin_lock_bh(&wport->lock); if (wport->write_urb_busy) { - spin_unlock(&wport->lock); + spin_unlock_bh(&wport->lock); dbg("%s - already writing", __FUNCTION__); return 0; } wport->write_urb_busy = 1; - spin_unlock(&wport->lock); + spin_unlock_bh(&wport->lock); count = (count > OMNINET_BULKOUTSIZE) ? OMNINET_BULKOUTSIZE : count; @@ -320,7 +319,7 @@ static void omninet_write_bulk_callback (struct urb *urb, struct pt_regs *regs) return; } - schedule_work(&port->work); + usb_serial_port_softint(port); }