diff options
Diffstat (limited to 'drivers/usb/serial/cyberjack.c')
-rw-r--r-- | drivers/usb/serial/cyberjack.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/usb/serial/cyberjack.c b/drivers/usb/serial/cyberjack.c index 1fd5c5a9f2ef..d954ec34b018 100644 --- a/drivers/usb/serial/cyberjack.c +++ b/drivers/usb/serial/cyberjack.c | |||
@@ -28,7 +28,6 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | 30 | ||
31 | #include <linux/config.h> | ||
32 | #include <linux/kernel.h> | 31 | #include <linux/kernel.h> |
33 | #include <linux/errno.h> | 32 | #include <linux/errno.h> |
34 | #include <linux/init.h> | 33 | #include <linux/init.h> |
@@ -40,7 +39,7 @@ | |||
40 | #include <linux/spinlock.h> | 39 | #include <linux/spinlock.h> |
41 | #include <asm/uaccess.h> | 40 | #include <asm/uaccess.h> |
42 | #include <linux/usb.h> | 41 | #include <linux/usb.h> |
43 | #include "usb-serial.h" | 42 | #include <linux/usb/serial.h> |
44 | 43 | ||
45 | #define CYBERJACK_LOCAL_BUF_SIZE 32 | 44 | #define CYBERJACK_LOCAL_BUF_SIZE 32 |
46 | 45 | ||
@@ -215,14 +214,14 @@ static int cyberjack_write (struct usb_serial_port *port, const unsigned char *b | |||
215 | return (0); | 214 | return (0); |
216 | } | 215 | } |
217 | 216 | ||
218 | spin_lock(&port->lock); | 217 | spin_lock_bh(&port->lock); |
219 | if (port->write_urb_busy) { | 218 | if (port->write_urb_busy) { |
220 | spin_unlock(&port->lock); | 219 | spin_unlock_bh(&port->lock); |
221 | dbg("%s - already writing", __FUNCTION__); | 220 | dbg("%s - already writing", __FUNCTION__); |
222 | return 0; | 221 | return 0; |
223 | } | 222 | } |
224 | port->write_urb_busy = 1; | 223 | port->write_urb_busy = 1; |
225 | spin_unlock(&port->lock); | 224 | spin_unlock_bh(&port->lock); |
226 | 225 | ||
227 | spin_lock_irqsave(&priv->lock, flags); | 226 | spin_lock_irqsave(&priv->lock, flags); |
228 | 227 | ||