aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/pxa27x_udc.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2012-06-22 07:32:45 -0400
committerFelipe Balbi <balbi@ti.com>2012-06-25 07:04:26 -0400
commit721002ec1dd55a52425455826af49cf8853b2d4f (patch)
tree41d990b5f1a14d9e7bda9258083ee2628bf736e1 /drivers/usb/gadget/pxa27x_udc.c
parent6b03b13336ee5d8da7bda8799c9ed990e3daedcc (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/gadget/pxa27x_udc.c')
-rw-r--r--drivers/usb/gadget/pxa27x_udc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c
index 98acb3ab9e17..b982304a49c1 100644
--- a/drivers/usb/gadget/pxa27x_udc.c
+++ b/drivers/usb/gadget/pxa27x_udc.c
@@ -2464,7 +2464,7 @@ static int __init pxa_udc_probe(struct platform_device *pdev)
2464 2464
2465 udc->dev = &pdev->dev; 2465 udc->dev = &pdev->dev;
2466 udc->mach = pdev->dev.platform_data; 2466 udc->mach = pdev->dev.platform_data;
2467 udc->transceiver = usb_get_transceiver(); 2467 udc->transceiver = usb_get_phy();
2468 2468
2469 gpio = udc->mach->gpio_pullup; 2469 gpio = udc->mach->gpio_pullup;
2470 if (gpio_is_valid(gpio)) { 2470 if (gpio_is_valid(gpio)) {
@@ -2543,7 +2543,7 @@ static int __exit pxa_udc_remove(struct platform_device *_dev)
2543 if (gpio_is_valid(gpio)) 2543 if (gpio_is_valid(gpio))
2544 gpio_free(gpio); 2544 gpio_free(gpio);
2545 2545
2546 usb_put_transceiver(udc->transceiver); 2546 usb_put_phy(udc->transceiver);
2547 2547
2548 udc->transceiver = NULL; 2548 udc->transceiver = NULL;
2549 platform_set_drvdata(_dev, NULL); 2549 platform_set_drvdata(_dev, NULL);