musb_hdrc: Stop VBUS draw on usb_gadget_unregister_driver
authorTony Lindgren <tony@atomide.com>
Wed, 15 Aug 2007 09:12:20 +0000 (12:12 +0300)
committerTony Lindgren <tony@atomide.com>
Wed, 15 Aug 2007 10:44:48 +0000 (03:44 -0700)
If musb_gadget_vbus_draw() also toggles a clock like tusb does,
USB clock will stay on after rmmoding a gadget driver. This
can block omap idle states.

Also handle disconnect as b_idle so that musb_gadget_vbus_draw()
gets called.

Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found