usb: musb: Remove conditional PM runtime calls for musb_gadget
authorTony Lindgren <tony@atomide.com>
Tue, 31 May 2016 15:05:13 +0000 (10:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 21:58:59 +0000 (14:58 -0700)
commit30647217909ea8ce4d8f4905b15fa1bb09d80859
tree42010b2897b38215d5deae648ecc7d90b5f8674a
parentf730f205cc5116b6edfedf568fdfbb4935248e8e
usb: musb: Remove conditional PM runtime calls for musb_gadget

The conditional use of PM runtime does not work properly
for musb gadget. On cable disconnect we may not get any
USB_EVENT_NONE leaving the PM runtime call unpaired.

Let's fix the issue by making sure the PM runtime calls are
paired within the functions. The glue layer will take care
of the rest.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_gadget.c