*
*/
+#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <asm/uaccess.h>
#include <linux/usb.h>
-#include <linux/usb/serial.h>
+#include "usb-serial.h"
static int debug;
return (0);
}
- spin_lock_bh(&wport->lock);
+ spin_lock(&wport->lock);
if (wport->write_urb_busy) {
- spin_unlock_bh(&wport->lock);
+ spin_unlock(&wport->lock);
dbg("%s - already writing", __FUNCTION__);
return 0;
}
wport->write_urb_busy = 1;
- spin_unlock_bh(&wport->lock);
+ spin_unlock(&wport->lock);
count = (count > OMNINET_BULKOUTSIZE) ? OMNINET_BULKOUTSIZE : count;
return;
}
- usb_serial_port_softint(port);
+ schedule_work(&port->work);
}