diff options
Diffstat (limited to 'drivers/usb/serial/omninet.c')
-rw-r--r-- | drivers/usb/serial/omninet.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index 6dcdb5f598b8..a764ff4e326c 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -35,7 +35,6 @@ | |||
35 | * | 35 | * |
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include <linux/config.h> | ||
39 | #include <linux/kernel.h> | 38 | #include <linux/kernel.h> |
40 | #include <linux/errno.h> | 39 | #include <linux/errno.h> |
41 | #include <linux/init.h> | 40 | #include <linux/init.h> |
@@ -47,7 +46,7 @@ | |||
47 | #include <linux/spinlock.h> | 46 | #include <linux/spinlock.h> |
48 | #include <asm/uaccess.h> | 47 | #include <asm/uaccess.h> |
49 | #include <linux/usb.h> | 48 | #include <linux/usb.h> |
50 | #include "usb-serial.h" | 49 | #include <linux/usb/serial.h> |
51 | 50 | ||
52 | static int debug; | 51 | static int debug; |
53 | 52 | ||
@@ -257,14 +256,14 @@ static int omninet_write (struct usb_serial_port *port, const unsigned char *buf | |||
257 | return (0); | 256 | return (0); |
258 | } | 257 | } |
259 | 258 | ||
260 | spin_lock(&wport->lock); | 259 | spin_lock_bh(&wport->lock); |
261 | if (wport->write_urb_busy) { | 260 | if (wport->write_urb_busy) { |
262 | spin_unlock(&wport->lock); | 261 | spin_unlock_bh(&wport->lock); |
263 | dbg("%s - already writing", __FUNCTION__); | 262 | dbg("%s - already writing", __FUNCTION__); |
264 | return 0; | 263 | return 0; |
265 | } | 264 | } |
266 | wport->write_urb_busy = 1; | 265 | wport->write_urb_busy = 1; |
267 | spin_unlock(&wport->lock); | 266 | spin_unlock_bh(&wport->lock); |
268 | 267 | ||
269 | count = (count > OMNINET_BULKOUTSIZE) ? OMNINET_BULKOUTSIZE : count; | 268 | count = (count > OMNINET_BULKOUTSIZE) ? OMNINET_BULKOUTSIZE : count; |
270 | 269 | ||