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>
This commit is contained in:

committed by
Felipe Balbi

vanhempi
6b03b13336
commit
721002ec1d
@@ -690,7 +690,7 @@ int mv_otg_remove(struct platform_device *pdev)
|
||||
for (clk_i = 0; clk_i <= mvotg->clknum; clk_i++)
|
||||
clk_put(mvotg->clk[clk_i]);
|
||||
|
||||
usb_set_transceiver(NULL);
|
||||
usb_add_phy(NULL);
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
|
||||
kfree(mvotg->phy.otg);
|
||||
@@ -853,7 +853,7 @@ static int mv_otg_probe(struct platform_device *pdev)
|
||||
goto err_disable_clk;
|
||||
}
|
||||
|
||||
retval = usb_set_transceiver(&mvotg->phy);
|
||||
retval = usb_add_phy(&mvotg->phy);
|
||||
if (retval < 0) {
|
||||
dev_err(&pdev->dev, "can't register transceiver, %d\n",
|
||||
retval);
|
||||
@@ -880,7 +880,7 @@ static int mv_otg_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
|
||||
err_set_transceiver:
|
||||
usb_set_transceiver(NULL);
|
||||
usb_add_phy(NULL);
|
||||
err_free_irq:
|
||||
free_irq(mvotg->irq, mvotg);
|
||||
err_disable_clk:
|
||||
|
Viittaa uudesa ongelmassa
Block a user