|
@@ -478,15 +478,15 @@ static int tegra_ehci_probe(struct platform_device *pdev)
|
|
|
err = usb_add_hcd(hcd, irq, IRQF_SHARED);
|
|
|
if (err) {
|
|
|
dev_err(&pdev->dev, "Failed to add USB HCD\n");
|
|
|
- goto cleanup_phy;
|
|
|
+ goto cleanup_transceiver;
|
|
|
}
|
|
|
|
|
|
return err;
|
|
|
|
|
|
-cleanup_phy:
|
|
|
+cleanup_transceiver:
|
|
|
if (!IS_ERR(tegra->transceiver))
|
|
|
otg_set_host(tegra->transceiver->otg, NULL);
|
|
|
-
|
|
|
+cleanup_phy:
|
|
|
usb_phy_shutdown(hcd->phy);
|
|
|
cleanup_clk_en:
|
|
|
clk_disable_unprepare(tegra->clk);
|