diff options
Diffstat (limited to 'drivers/usb/serial/safe_serial.c')
-rw-r--r-- | drivers/usb/serial/safe_serial.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/usb/serial/safe_serial.c b/drivers/usb/serial/safe_serial.c index f0215f850d2d..1e07dfad6853 100644 --- a/drivers/usb/serial/safe_serial.c +++ b/drivers/usb/serial/safe_serial.c | |||
@@ -60,7 +60,6 @@ | |||
60 | */ | 60 | */ |
61 | 61 | ||
62 | 62 | ||
63 | #include <linux/config.h> | ||
64 | #include <linux/kernel.h> | 63 | #include <linux/kernel.h> |
65 | #include <linux/errno.h> | 64 | #include <linux/errno.h> |
66 | #include <linux/init.h> | 65 | #include <linux/init.h> |
@@ -72,7 +71,7 @@ | |||
72 | #include <linux/spinlock.h> | 71 | #include <linux/spinlock.h> |
73 | #include <asm/uaccess.h> | 72 | #include <asm/uaccess.h> |
74 | #include <linux/usb.h> | 73 | #include <linux/usb.h> |
75 | #include "usb-serial.h" | 74 | #include <linux/usb/serial.h> |
76 | 75 | ||
77 | 76 | ||
78 | #ifndef CONFIG_USB_SAFE_PADDED | 77 | #ifndef CONFIG_USB_SAFE_PADDED |
@@ -299,14 +298,14 @@ static int safe_write (struct usb_serial_port *port, const unsigned char *buf, i | |||
299 | dbg ("%s - write request of 0 bytes", __FUNCTION__); | 298 | dbg ("%s - write request of 0 bytes", __FUNCTION__); |
300 | return (0); | 299 | return (0); |
301 | } | 300 | } |
302 | spin_lock(&port->lock); | 301 | spin_lock_bh(&port->lock); |
303 | if (port->write_urb_busy) { | 302 | if (port->write_urb_busy) { |
304 | spin_unlock(&port->lock); | 303 | spin_unlock_bh(&port->lock); |
305 | dbg("%s - already writing", __FUNCTION__); | 304 | dbg("%s - already writing", __FUNCTION__); |
306 | return 0; | 305 | return 0; |
307 | } | 306 | } |
308 | port->write_urb_busy = 1; | 307 | port->write_urb_busy = 1; |
309 | spin_unlock(&port->lock); | 308 | spin_unlock_bh(&port->lock); |
310 | 309 | ||
311 | packet_length = port->bulk_out_size; // get max packetsize | 310 | packet_length = port->bulk_out_size; // get max packetsize |
312 | 311 | ||