1
linux/drivers/usb/otg
Jarkko Nikula c3d6450e74 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>
2010-11-30 16:46:33 -08:00
..
gpio_vbus.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
isp1301_omap.c USB: omap: switch to subsys_initcall for isp1301 transceiver 2010-05-20 13:21:38 -07:00
Kconfig USB OTG Langwell: Update OTG Kconfig and driver version. 2010-10-22 10:21:33 -07:00
langwell_otg.c USB OTG Langwell: Update OTG Kconfig and driver version. 2010-10-22 10:21:33 -07:00
Makefile usb: makefile cleanup 2010-10-22 10:22:07 -07:00
nop-usb-xceiv.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
otg.c USB: otg: Fix bug on remove path without transceiver 2009-04-23 14:15:31 -07:00
twl4030-usb.c usb: otg: twl4030-usb: Fix unbalanced regulator disables at module removal 2010-11-30 16:46:33 -08:00
ulpi.c USB: otg/ulpi: extend id's table. 2010-10-22 10:22:10 -07:00