aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/omap2430.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/musb/omap2430.c')
-rw-r--r--drivers/usb/musb/omap2430.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index a427fcb13430..96a3d3763cc4 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -247,7 +247,7 @@ static void musb_otg_notifier_work(struct work_struct *data_notifier_work)
247 247
248 if (!is_otg_enabled(musb) || musb->gadget_driver) { 248 if (!is_otg_enabled(musb) || musb->gadget_driver) {
249 pm_runtime_get_sync(musb->controller); 249 pm_runtime_get_sync(musb->controller);
250 otg_init(musb->xceiv); 250 usb_phy_init(musb->xceiv);
251 omap2430_musb_set_vbus(musb, 1); 251 omap2430_musb_set_vbus(musb, 1);
252 } 252 }
253 break; 253 break;
@@ -257,7 +257,7 @@ static void musb_otg_notifier_work(struct work_struct *data_notifier_work)
257 257
258 if (musb->gadget_driver) 258 if (musb->gadget_driver)
259 pm_runtime_get_sync(musb->controller); 259 pm_runtime_get_sync(musb->controller);
260 otg_init(musb->xceiv); 260 usb_phy_init(musb->xceiv);
261 break; 261 break;
262 262
263 case USB_EVENT_NONE: 263 case USB_EVENT_NONE:
@@ -273,7 +273,7 @@ static void musb_otg_notifier_work(struct work_struct *data_notifier_work)
273 if (musb->xceiv->set_vbus) 273 if (musb->xceiv->set_vbus)
274 otg_set_vbus(musb->xceiv, 0); 274 otg_set_vbus(musb->xceiv, 0);
275 } 275 }
276 otg_shutdown(musb->xceiv); 276 usb_phy_shutdown(musb->xceiv);
277 break; 277 break;
278 default: 278 default:
279 dev_dbg(musb->controller, "ID float\n"); 279 dev_dbg(musb->controller, "ID float\n");
@@ -291,7 +291,7 @@ static int omap2430_musb_init(struct musb *musb)
291 * up through ULPI. TWL4030-family PMICs include one, 291 * up through ULPI. TWL4030-family PMICs include one,
292 * which needs a driver, drivers aren't always needed. 292 * which needs a driver, drivers aren't always needed.
293 */ 293 */
294 musb->xceiv = otg_get_transceiver(); 294 musb->xceiv = usb_get_transceiver();
295 if (!musb->xceiv) { 295 if (!musb->xceiv) {
296 pr_err("HS USB OTG: no transceiver configured\n"); 296 pr_err("HS USB OTG: no transceiver configured\n");
297 return -ENODEV; 297 return -ENODEV;
@@ -326,7 +326,7 @@ static int omap2430_musb_init(struct musb *musb)
326 musb_readl(musb->mregs, OTG_SIMENABLE)); 326 musb_readl(musb->mregs, OTG_SIMENABLE));
327 327
328 musb->nb.notifier_call = musb_otg_notifications; 328 musb->nb.notifier_call = musb_otg_notifications;
329 status = otg_register_notifier(musb->xceiv, &musb->nb); 329 status = usb_register_notifier(musb->xceiv, &musb->nb);
330 330
331 if (status) 331 if (status)
332 dev_dbg(musb->controller, "notification register failed\n"); 332 dev_dbg(musb->controller, "notification register failed\n");
@@ -350,7 +350,7 @@ static void omap2430_musb_enable(struct musb *musb)
350 switch (musb->xceiv->last_event) { 350 switch (musb->xceiv->last_event) {
351 351
352 case USB_EVENT_ID: 352 case USB_EVENT_ID:
353 otg_init(musb->xceiv); 353 usb_phy_init(musb->xceiv);
354 if (data->interface_type != MUSB_INTERFACE_UTMI) 354 if (data->interface_type != MUSB_INTERFACE_UTMI)
355 break; 355 break;
356 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); 356 devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
@@ -369,7 +369,7 @@ static void omap2430_musb_enable(struct musb *musb)
369 break; 369 break;
370 370
371 case USB_EVENT_VBUS: 371 case USB_EVENT_VBUS:
372 otg_init(musb->xceiv); 372 usb_phy_init(musb->xceiv);
373 break; 373 break;
374 374
375 default: 375 default:
@@ -380,7 +380,7 @@ static void omap2430_musb_enable(struct musb *musb)
380static void omap2430_musb_disable(struct musb *musb) 380static void omap2430_musb_disable(struct musb *musb)
381{ 381{
382 if (musb->xceiv->last_event) 382 if (musb->xceiv->last_event)
383 otg_shutdown(musb->xceiv); 383 usb_phy_shutdown(musb->xceiv);
384} 384}
385 385
386static int omap2430_musb_exit(struct musb *musb) 386static int omap2430_musb_exit(struct musb *musb)
@@ -389,7 +389,7 @@ static int omap2430_musb_exit(struct musb *musb)
389 cancel_work_sync(&musb->otg_notifier_work); 389 cancel_work_sync(&musb->otg_notifier_work);
390 390
391 omap2430_low_level_exit(musb); 391 omap2430_low_level_exit(musb);
392 otg_put_transceiver(musb->xceiv); 392 usb_put_transceiver(musb->xceiv);
393 393
394 return 0; 394 return 0;
395} 395}
@@ -495,7 +495,7 @@ static int omap2430_runtime_suspend(struct device *dev)
495 OTG_INTERFSEL); 495 OTG_INTERFSEL);
496 496
497 omap2430_low_level_exit(musb); 497 omap2430_low_level_exit(musb);
498 otg_set_suspend(musb->xceiv, 1); 498 usb_phy_set_suspend(musb->xceiv, 1);
499 499
500 return 0; 500 return 0;
501} 501}
@@ -509,7 +509,7 @@ static int omap2430_runtime_resume(struct device *dev)
509 musb_writel(musb->mregs, OTG_INTERFSEL, 509 musb_writel(musb->mregs, OTG_INTERFSEL,
510 musb->context.otg_interfsel); 510 musb->context.otg_interfsel);
511 511
512 otg_set_suspend(musb->xceiv, 0); 512 usb_phy_set_suspend(musb->xceiv, 0);
513 513
514 return 0; 514 return 0;
515} 515}