diff options
Diffstat (limited to 'drivers/usb/serial/keyspan_pda.c')
-rw-r--r-- | drivers/usb/serial/keyspan_pda.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index b0441c35f98f..59e777f1e8fd 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
@@ -66,7 +66,6 @@ | |||
66 | */ | 66 | */ |
67 | 67 | ||
68 | 68 | ||
69 | #include <linux/config.h> | ||
70 | #include <linux/kernel.h> | 69 | #include <linux/kernel.h> |
71 | #include <linux/errno.h> | 70 | #include <linux/errno.h> |
72 | #include <linux/init.h> | 71 | #include <linux/init.h> |
@@ -79,6 +78,7 @@ | |||
79 | #include <linux/workqueue.h> | 78 | #include <linux/workqueue.h> |
80 | #include <asm/uaccess.h> | 79 | #include <asm/uaccess.h> |
81 | #include <linux/usb.h> | 80 | #include <linux/usb.h> |
81 | #include <linux/usb/serial.h> | ||
82 | 82 | ||
83 | static int debug; | 83 | static int debug; |
84 | 84 | ||
@@ -108,8 +108,6 @@ struct ezusb_hex_record { | |||
108 | #include "xircom_pgs_fw.h" | 108 | #include "xircom_pgs_fw.h" |
109 | #endif | 109 | #endif |
110 | 110 | ||
111 | #include "usb-serial.h" | ||
112 | |||
113 | /* | 111 | /* |
114 | * Version Information | 112 | * Version Information |
115 | */ | 113 | */ |
@@ -520,13 +518,13 @@ static int keyspan_pda_write(struct usb_serial_port *port, | |||
520 | the TX urb is in-flight (wait until it completes) | 518 | the TX urb is in-flight (wait until it completes) |
521 | the device is full (wait until it says there is room) | 519 | the device is full (wait until it says there is room) |
522 | */ | 520 | */ |
523 | spin_lock(&port->lock); | 521 | spin_lock_bh(&port->lock); |
524 | if (port->write_urb_busy || priv->tx_throttled) { | 522 | if (port->write_urb_busy || priv->tx_throttled) { |
525 | spin_unlock(&port->lock); | 523 | spin_unlock_bh(&port->lock); |
526 | return 0; | 524 | return 0; |
527 | } | 525 | } |
528 | port->write_urb_busy = 1; | 526 | port->write_urb_busy = 1; |
529 | spin_unlock(&port->lock); | 527 | spin_unlock_bh(&port->lock); |
530 | 528 | ||
531 | /* At this point the URB is in our control, nobody else can submit it | 529 | /* At this point the URB is in our control, nobody else can submit it |
532 | again (the only sudden transition was the one from EINPROGRESS to | 530 | again (the only sudden transition was the one from EINPROGRESS to |