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)
commit0287d5c5cda82ebe87e79e5a298f40f0ca05e5ef
tree7a3ef2a732b96c4c709cad470cd40bf121761993
parent71c149b901e367db5dae1ec83bb82d14d01ad4cb
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