X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=drivers%2Fusb%2Fmusb%2Fomap2430.c;h=55c0b937ef35d8989134a3af665c10b0b6028ff1;hp=81f05f3ce9c99f4f8b67d1424c2ec12c58a501fe;hb=d04d63797682e2200e32d6e6b097d00a798a2df0;hpb=71c451a58d430c7033bc2957589dee51335d57c0 diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 81f05f3ce9c9..55c0b937ef35 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -264,10 +264,10 @@ static int musb_otg_notifications(struct notifier_block *nb, case USB_EVENT_NONE: dev_dbg(musb->controller, "VBUS Disconnect\n"); - omap2430_musb_set_vbus(musb, 0); - if (is_otg_enabled(musb) || is_peripheral_enabled(musb)) if (musb->gadget_driver) { + omap2430_musb_set_vbus(musb, 0); + pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); }