*/
+#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"
#ifndef CONFIG_USB_SAFE_PADDED
dbg ("%s - write request of 0 bytes", __FUNCTION__);
return (0);
}
- spin_lock_bh(&port->lock);
+ spin_lock(&port->lock);
if (port->write_urb_busy) {
- spin_unlock_bh(&port->lock);
+ spin_unlock(&port->lock);
dbg("%s - already writing", __FUNCTION__);
return 0;
}
port->write_urb_busy = 1;
- spin_unlock_bh(&port->lock);
+ spin_unlock(&port->lock);
packet_length = port->bulk_out_size; // get max packetsize