diff options
| author | Johan Hovold <jhovold@gmail.com> | 2014-05-26 13:23:50 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 18:04:10 -0400 |
| commit | 308fee18e0f06215b47b54a2b254bfaf55527bdd (patch) | |
| tree | 48b3f7512f132b6b518b197bdb9b4562bb24668c | |
| parent | 4a8ee5059a241114c644350b6cb564c729a340fa (diff) | |
USB: cdc-acm: remove redundant usb_mark_last_busy
There's no need to call usb_mark_last_busy after having increased the PM
counter in write(). The device will be marked busy by USB core when the
PM counter is balanced in the completion handler.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/usb/class/cdc-acm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 3c7cfac48e30..8f654ce52570 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c | |||
| @@ -690,7 +690,6 @@ static int acm_tty_write(struct tty_struct *tty, | |||
| 690 | spin_unlock_irqrestore(&acm->write_lock, flags); | 690 | spin_unlock_irqrestore(&acm->write_lock, flags); |
| 691 | return count; | 691 | return count; |
| 692 | } | 692 | } |
| 693 | usb_mark_last_busy(acm->dev); | ||
| 694 | 693 | ||
| 695 | stat = acm_start_wb(acm, wb); | 694 | stat = acm_start_wb(acm, wb); |
| 696 | spin_unlock_irqrestore(&acm->write_lock, flags); | 695 | spin_unlock_irqrestore(&acm->write_lock, flags); |
