diff options
Diffstat (limited to 'drivers/usb/musb/omap2430.c')
-rw-r--r-- | drivers/usb/musb/omap2430.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 1ab6973d4f61..cc1225485509 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c | |||
@@ -287,6 +287,7 @@ static int omap2430_musb_init(struct musb *musb) | |||
287 | } | 287 | } |
288 | musb->isr = omap2430_musb_interrupt; | 288 | musb->isr = omap2430_musb_interrupt; |
289 | phy_init(musb->phy); | 289 | phy_init(musb->phy); |
290 | phy_power_on(musb->phy); | ||
290 | 291 | ||
291 | l = musb_readl(musb->mregs, OTG_INTERFSEL); | 292 | l = musb_readl(musb->mregs, OTG_INTERFSEL); |
292 | 293 | ||
@@ -323,8 +324,6 @@ static void omap2430_musb_enable(struct musb *musb) | |||
323 | struct musb_hdrc_platform_data *pdata = dev_get_platdata(dev); | 324 | struct musb_hdrc_platform_data *pdata = dev_get_platdata(dev); |
324 | struct omap_musb_board_data *data = pdata->board_data; | 325 | struct omap_musb_board_data *data = pdata->board_data; |
325 | 326 | ||
326 | if (!WARN_ON(!musb->phy)) | ||
327 | phy_power_on(musb->phy); | ||
328 | 327 | ||
329 | switch (glue->status) { | 328 | switch (glue->status) { |
330 | 329 | ||
@@ -361,9 +360,6 @@ static void omap2430_musb_disable(struct musb *musb) | |||
361 | struct device *dev = musb->controller; | 360 | struct device *dev = musb->controller; |
362 | struct omap2430_glue *glue = dev_get_drvdata(dev->parent); | 361 | struct omap2430_glue *glue = dev_get_drvdata(dev->parent); |
363 | 362 | ||
364 | if (!WARN_ON(!musb->phy)) | ||
365 | phy_power_off(musb->phy); | ||
366 | |||
367 | if (glue->status != MUSB_UNKNOWN) | 363 | if (glue->status != MUSB_UNKNOWN) |
368 | omap_control_usb_set_mode(glue->control_otghs, | 364 | omap_control_usb_set_mode(glue->control_otghs, |
369 | USB_MODE_DISCONNECT); | 365 | USB_MODE_DISCONNECT); |
@@ -375,6 +371,7 @@ static int omap2430_musb_exit(struct musb *musb) | |||
375 | struct omap2430_glue *glue = dev_get_drvdata(dev->parent); | 371 | struct omap2430_glue *glue = dev_get_drvdata(dev->parent); |
376 | 372 | ||
377 | omap2430_low_level_exit(musb); | 373 | omap2430_low_level_exit(musb); |
374 | phy_power_off(musb->phy); | ||
378 | phy_exit(musb->phy); | 375 | phy_exit(musb->phy); |
379 | musb->phy = NULL; | 376 | musb->phy = NULL; |
380 | cancel_work_sync(&glue->omap_musb_mailbox_work); | 377 | cancel_work_sync(&glue->omap_musb_mailbox_work); |