]> git.baikalelectronics.ru Git - kernel.git/commit
USB: sierra: minimise no-suspend window during close
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:08 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:05 +0000 (15:04 -0700)
commit63c6f6c89956b083f32d2f283c62adbe8f1e7d6f
tree7a3ef2a732b96c4c709cad470cd40bf121761993
parentcf5899f5e8f00e5671825a6da0dfdb2234dd8aec
USB: sierra: minimise no-suspend window during close

Move usb_autopm_get_interface_no_resume to the end of close(). This
makes the window during which suspend is prevented before the final put
in USB serial core slightly smaller.

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