aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/otg/twl4030-usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/otg/twl4030-usb.c b/drivers/usb/otg/twl4030-usb.c
index 9e3e7a5c258b..bd9883f41e63 100644
--- a/drivers/usb/otg/twl4030-usb.c
+++ b/drivers/usb/otg/twl4030-usb.c
@@ -598,12 +598,12 @@ static irqreturn_t twl4030_usb_irq(int irq, void *_twl)
598 * USB_LINK_VBUS state. musb_hdrc won't care until it 598 * USB_LINK_VBUS state. musb_hdrc won't care until it
599 * starts to handle softconnect right. 599 * starts to handle softconnect right.
600 */ 600 */
601 twl4030charger_usb_en(status == USB_LINK_VBUS);
602
603 if (status == USB_LINK_NONE) 601 if (status == USB_LINK_NONE)
604 twl4030_phy_suspend(twl, 0); 602 twl4030_phy_suspend(twl, 0);
605 else 603 else
606 twl4030_phy_resume(twl); 604 twl4030_phy_resume(twl);
605
606 twl4030charger_usb_en(status == USB_LINK_VBUS);
607 } 607 }
608 sysfs_notify(&twl->dev->kobj, NULL, "vbus"); 608 sysfs_notify(&twl->dev->kobj, NULL, "vbus");
609 609