USB: cdc-acm: simplify runtime PM locking
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:46 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:09 +0000 (15:04 -0700)
commitbbf0cb3e93a1b6ef8bf22a67f35d7c98ef378f2b
tree7e11e0058cc745b5e64e5d247369fab6b3b102ab
parent5292afa657d0e790b7479ad8eef9450c1e040b3d
USB: cdc-acm: simplify runtime PM locking

We can simply the runtime PM locking as there's no need to check the
susp_count in the read path (at least not since killing the rx tasklet).

Specifically, the read urbs will never be resubmitted by the completion
handler when killed during suspend.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c