diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2012-06-22 07:32:45 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-25 07:04:26 -0400 |
commit | 721002ec1dd55a52425455826af49cf8853b2d4f (patch) | |
tree | 41d990b5f1a14d9e7bda9258083ee2628bf736e1 /drivers/usb/musb/davinci.c | |
parent | 6b03b13336ee5d8da7bda8799c9ed990e3daedcc (diff) |
usb: otg: utils: rename function name in OTG utils
_transceiver() in otg.c is replaced with _phy. usb_set_transceiver is
replaced with usb_add_phy to make it similar to other usb standard
function names like usb_add_hcd.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/davinci.c')
-rw-r--r-- | drivers/usb/musb/davinci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c index 768b4b55c816..441f776366f3 100644 --- a/drivers/usb/musb/davinci.c +++ b/drivers/usb/musb/davinci.c | |||
@@ -384,7 +384,7 @@ static int davinci_musb_init(struct musb *musb) | |||
384 | u32 revision; | 384 | u32 revision; |
385 | 385 | ||
386 | usb_nop_xceiv_register(); | 386 | usb_nop_xceiv_register(); |
387 | musb->xceiv = usb_get_transceiver(); | 387 | musb->xceiv = usb_get_phy(); |
388 | if (!musb->xceiv) | 388 | if (!musb->xceiv) |
389 | goto unregister; | 389 | goto unregister; |
390 | 390 | ||
@@ -443,7 +443,7 @@ static int davinci_musb_init(struct musb *musb) | |||
443 | return 0; | 443 | return 0; |
444 | 444 | ||
445 | fail: | 445 | fail: |
446 | usb_put_transceiver(musb->xceiv); | 446 | usb_put_phy(musb->xceiv); |
447 | unregister: | 447 | unregister: |
448 | usb_nop_xceiv_unregister(); | 448 | usb_nop_xceiv_unregister(); |
449 | return -ENODEV; | 449 | return -ENODEV; |
@@ -493,7 +493,7 @@ static int davinci_musb_exit(struct musb *musb) | |||
493 | 493 | ||
494 | phy_off(); | 494 | phy_off(); |
495 | 495 | ||
496 | usb_put_transceiver(musb->xceiv); | 496 | usb_put_phy(musb->xceiv); |
497 | usb_nop_xceiv_unregister(); | 497 | usb_nop_xceiv_unregister(); |
498 | 498 | ||
499 | return 0; | 499 | return 0; |