aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-04-16 16:20:44 -0400
committerFelipe Balbi <balbi@ti.com>2014-04-21 15:07:24 -0400
commit4525beeb9aadbb9e1cb3e9e135f4371553f26a70 (patch)
tree4c3679819c31984dfa313ee64abaf9f0b6abbb18 /drivers/usb/musb
parent0700faaf736492bd203630d179b639a1f5bbb576 (diff)
usb: phy: rename usb_nop_xceiv to usb_phy_generic
no functional changes, just renaming the function in order to make it slightly clearer what it should be used for, also matching the driver name. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/am35x.c4
-rw-r--r--drivers/usb/musb/blackfin.c4
-rw-r--r--drivers/usb/musb/da8xx.c4
-rw-r--r--drivers/usb/musb/davinci.c6
-rw-r--r--drivers/usb/musb/tusb6010.c6
5 files changed, 12 insertions, 12 deletions
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c
index b3aa0184af9a..77ed66427969 100644
--- a/drivers/usb/musb/am35x.c
+++ b/drivers/usb/musb/am35x.c
@@ -360,7 +360,7 @@ static int am35x_musb_init(struct musb *musb)
360 if (!rev) 360 if (!rev)
361 return -ENODEV; 361 return -ENODEV;
362 362
363 usb_nop_xceiv_register(); 363 usb_phy_generic_register();
364 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2); 364 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
365 if (IS_ERR_OR_NULL(musb->xceiv)) 365 if (IS_ERR_OR_NULL(musb->xceiv))
366 return -EPROBE_DEFER; 366 return -EPROBE_DEFER;
@@ -402,7 +402,7 @@ static int am35x_musb_exit(struct musb *musb)
402 data->set_phy_power(0); 402 data->set_phy_power(0);
403 403
404 usb_put_phy(musb->xceiv); 404 usb_put_phy(musb->xceiv);
405 usb_nop_xceiv_unregister(); 405 usb_phy_generic_unregister();
406 406
407 return 0; 407 return 0;
408} 408}
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c
index 796677fa9a15..607f3ae04591 100644
--- a/drivers/usb/musb/blackfin.c
+++ b/drivers/usb/musb/blackfin.c
@@ -401,7 +401,7 @@ static int bfin_musb_init(struct musb *musb)
401 } 401 }
402 gpio_direction_output(musb->config->gpio_vrsel, 0); 402 gpio_direction_output(musb->config->gpio_vrsel, 0);
403 403
404 usb_nop_xceiv_register(); 404 usb_phy_generic_register();
405 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2); 405 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
406 if (IS_ERR_OR_NULL(musb->xceiv)) { 406 if (IS_ERR_OR_NULL(musb->xceiv)) {
407 gpio_free(musb->config->gpio_vrsel); 407 gpio_free(musb->config->gpio_vrsel);
@@ -426,7 +426,7 @@ static int bfin_musb_exit(struct musb *musb)
426 gpio_free(musb->config->gpio_vrsel); 426 gpio_free(musb->config->gpio_vrsel);
427 427
428 usb_put_phy(musb->xceiv); 428 usb_put_phy(musb->xceiv);
429 usb_nop_xceiv_unregister(); 429 usb_phy_generic_unregister();
430 return 0; 430 return 0;
431} 431}
432 432
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c
index e3486de71995..bcdce8e64670 100644
--- a/drivers/usb/musb/da8xx.c
+++ b/drivers/usb/musb/da8xx.c
@@ -418,7 +418,7 @@ static int da8xx_musb_init(struct musb *musb)
418 if (!rev) 418 if (!rev)
419 goto fail; 419 goto fail;
420 420
421 usb_nop_xceiv_register(); 421 usb_phy_generic_register();
422 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2); 422 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
423 if (IS_ERR_OR_NULL(musb->xceiv)) { 423 if (IS_ERR_OR_NULL(musb->xceiv)) {
424 ret = -EPROBE_DEFER; 424 ret = -EPROBE_DEFER;
@@ -453,7 +453,7 @@ static int da8xx_musb_exit(struct musb *musb)
453 phy_off(); 453 phy_off();
454 454
455 usb_put_phy(musb->xceiv); 455 usb_put_phy(musb->xceiv);
456 usb_nop_xceiv_unregister(); 456 usb_phy_generic_unregister();
457 457
458 return 0; 458 return 0;
459} 459}
diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c
index c259dac9d056..c0e07eddb079 100644
--- a/drivers/usb/musb/davinci.c
+++ b/drivers/usb/musb/davinci.c
@@ -381,7 +381,7 @@ static int davinci_musb_init(struct musb *musb)
381 u32 revision; 381 u32 revision;
382 int ret = -ENODEV; 382 int ret = -ENODEV;
383 383
384 usb_nop_xceiv_register(); 384 usb_phy_generic_register();
385 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2); 385 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
386 if (IS_ERR_OR_NULL(musb->xceiv)) { 386 if (IS_ERR_OR_NULL(musb->xceiv)) {
387 ret = -EPROBE_DEFER; 387 ret = -EPROBE_DEFER;
@@ -439,7 +439,7 @@ static int davinci_musb_init(struct musb *musb)
439fail: 439fail:
440 usb_put_phy(musb->xceiv); 440 usb_put_phy(musb->xceiv);
441unregister: 441unregister:
442 usb_nop_xceiv_unregister(); 442 usb_phy_generic_unregister();
443 return ret; 443 return ret;
444} 444}
445 445
@@ -487,7 +487,7 @@ static int davinci_musb_exit(struct musb *musb)
487 phy_off(); 487 phy_off();
488 488
489 usb_put_phy(musb->xceiv); 489 usb_put_phy(musb->xceiv);
490 usb_nop_xceiv_unregister(); 490 usb_phy_generic_unregister();
491 491
492 return 0; 492 return 0;
493} 493}
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c
index 4e9fb1d08698..0c0f5ee1e3f1 100644
--- a/drivers/usb/musb/tusb6010.c
+++ b/drivers/usb/musb/tusb6010.c
@@ -1065,7 +1065,7 @@ static int tusb_musb_init(struct musb *musb)
1065 void __iomem *sync = NULL; 1065 void __iomem *sync = NULL;
1066 int ret; 1066 int ret;
1067 1067
1068 usb_nop_xceiv_register(); 1068 usb_phy_generic_register();
1069 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2); 1069 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
1070 if (IS_ERR_OR_NULL(musb->xceiv)) 1070 if (IS_ERR_OR_NULL(musb->xceiv))
1071 return -EPROBE_DEFER; 1071 return -EPROBE_DEFER;
@@ -1117,7 +1117,7 @@ done:
1117 iounmap(sync); 1117 iounmap(sync);
1118 1118
1119 usb_put_phy(musb->xceiv); 1119 usb_put_phy(musb->xceiv);
1120 usb_nop_xceiv_unregister(); 1120 usb_phy_generic_unregister();
1121 } 1121 }
1122 return ret; 1122 return ret;
1123} 1123}
@@ -1133,7 +1133,7 @@ static int tusb_musb_exit(struct musb *musb)
1133 iounmap(musb->sync_va); 1133 iounmap(musb->sync_va);
1134 1134
1135 usb_put_phy(musb->xceiv); 1135 usb_put_phy(musb->xceiv);
1136 usb_nop_xceiv_unregister(); 1136 usb_phy_generic_unregister();
1137 return 0; 1137 return 0;
1138} 1138}
1139 1139