diff options
author | Jarkko Nikula <jhnikula@gmail.com> | 2010-11-30 16:58:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-01 01:46:33 +0100 |
commit | c3d6450e741da08c3bc2e2ba06d743c27540abac (patch) | |
tree | b7b7a08020ec99b45af4af601f40102cee4c1299 /drivers/usb/gadget | |
parent | usb-wwan: implement TIOCGSERIAL and TIOCSSERIAL to avoid blocking close(2) (diff) | |
download | linux-c3d6450e741da08c3bc2e2ba06d743c27540abac.tar.xz linux-c3d6450e741da08c3bc2e2ba06d743c27540abac.zip |
usb: otg: twl4030-usb: Fix unbalanced regulator disables at module removal
Function twl4030_usb_remove can cause unbalanced regulator disables in
twl4030_phy_power if the cable is not connected. Regulator enable/disable
calls are in balance only if the twl4030_phy_resume was called prior the
twl4030_usb_remove, that is, the cable was connected.
Fix this by checking the 'asleep' variable in twl4030_usb_remove since that
variable is used to check state in other functions.
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget')
0 files changed, 0 insertions, 0 deletions