aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2011-03-22 06:12:20 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-13 19:18:30 -0400
commit6fb6b8846458afb7b5689f86cf35705c40eb70e5 (patch)
tree3f1ac0d7be1f927849154ec19d7fe21bedf44951 /drivers/usb/class
parent3a42610812c55e8a60e2660e01c6cb6eb01d4171 (diff)
USB: cdc-acm: remove unused drain-delay code
The drain-delay code is no longer used, so remove it. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r--drivers/usb/class/cdc-acm.c6
-rw-r--r--drivers/usb/class/cdc-acm.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index b84ccec8fc7b..e0f9febee7e6 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -50,9 +50,6 @@
50#include "cdc-acm.h" 50#include "cdc-acm.h"
51 51
52 52
53#define ACM_CLOSE_TIMEOUT 15 /* seconds to let writes drain */
54
55
56#define DRIVER_AUTHOR "Armin Fuerst, Pavel Machek, Johannes Erdfelt, Vojtech Pavlik, David Kubicek" 53#define DRIVER_AUTHOR "Armin Fuerst, Pavel Machek, Johannes Erdfelt, Vojtech Pavlik, David Kubicek"
57#define DRIVER_DESC "USB Abstract Control Model driver for USB modems and ISDN adapters" 54#define DRIVER_DESC "USB Abstract Control Model driver for USB modems and ISDN adapters"
58 55
@@ -507,8 +504,6 @@ static void acm_write_bulk(struct urb *urb)
507 spin_unlock_irqrestore(&acm->write_lock, flags); 504 spin_unlock_irqrestore(&acm->write_lock, flags);
508 if (ACM_READY(acm)) 505 if (ACM_READY(acm))
509 schedule_work(&acm->work); 506 schedule_work(&acm->work);
510 else
511 wake_up_interruptible(&acm->drain_wait);
512} 507}
513 508
514static void acm_softint(struct work_struct *work) 509static void acm_softint(struct work_struct *work)
@@ -1155,7 +1150,6 @@ made_compressed_probe:
1155 acm->urb_task.func = acm_rx_tasklet; 1150 acm->urb_task.func = acm_rx_tasklet;
1156 acm->urb_task.data = (unsigned long) acm; 1151 acm->urb_task.data = (unsigned long) acm;
1157 INIT_WORK(&acm->work, acm_softint); 1152 INIT_WORK(&acm->work, acm_softint);
1158 init_waitqueue_head(&acm->drain_wait);
1159 spin_lock_init(&acm->throttle_lock); 1153 spin_lock_init(&acm->throttle_lock);
1160 spin_lock_init(&acm->write_lock); 1154 spin_lock_init(&acm->write_lock);
1161 spin_lock_init(&acm->read_lock); 1155 spin_lock_init(&acm->read_lock);
diff --git a/drivers/usb/class/cdc-acm.h b/drivers/usb/class/cdc-acm.h
index b4ea54dbf323..7282d1f4912b 100644
--- a/drivers/usb/class/cdc-acm.h
+++ b/drivers/usb/class/cdc-acm.h
@@ -112,7 +112,6 @@ struct acm {
112 struct mutex mutex; 112 struct mutex mutex;
113 struct usb_cdc_line_coding line; /* bits, stop, parity */ 113 struct usb_cdc_line_coding line; /* bits, stop, parity */
114 struct work_struct work; /* work queue entry for line discipline waking up */ 114 struct work_struct work; /* work queue entry for line discipline waking up */
115 wait_queue_head_t drain_wait; /* close processing */
116 struct tasklet_struct urb_task; /* rx processing */ 115 struct tasklet_struct urb_task; /* rx processing */
117 spinlock_t throttle_lock; /* synchronize throtteling and read callback */ 116 spinlock_t throttle_lock; /* synchronize throtteling and read callback */
118 unsigned int ctrlin; /* input control lines (DCD, DSR, RI, break, overruns) */ 117 unsigned int ctrlin; /* input control lines (DCD, DSR, RI, break, overruns) */