Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364519
b: refs/heads/master
c: 369a9a9
h: refs/heads/master
i:
  364517: 949f3d8
  364515: 908ea8c
  364511: c67b125
v: v3
  • Loading branch information
Thierry Reding authored and Greg Kroah-Hartman committed Apr 3, 2013
1 parent e2e863b commit d6bc68f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb5369edca4f4307a6035dc6f6813698b0762906
refs/heads/master: 369a9a9d2af702bac3ccd2ade86ddcb2594eb3b1
7 changes: 5 additions & 2 deletions trunk/drivers/usb/host/ehci-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ static int tegra_ehci_probe(struct platform_device *pdev)
err = usb_phy_set_suspend(hcd->phy, 0);
if (err) {
dev_err(&pdev->dev, "Failed to power on the phy\n");
goto fail;
goto fail_phy;
}

tegra->host_resumed = 1;
Expand All @@ -770,7 +770,7 @@ static int tegra_ehci_probe(struct platform_device *pdev)
if (!irq) {
dev_err(&pdev->dev, "Failed to get IRQ\n");
err = -ENODEV;
goto fail;
goto fail_phy;
}

#ifdef CONFIG_USB_OTG_UTILS
Expand All @@ -779,6 +779,8 @@ static int tegra_ehci_probe(struct platform_device *pdev)
devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2);
if (!IS_ERR_OR_NULL(tegra->transceiver))
otg_set_host(tegra->transceiver->otg, &hcd->self);
} else {
tegra->transceiver = ERR_PTR(-ENODEV);
}
#endif

Expand All @@ -803,6 +805,7 @@ static int tegra_ehci_probe(struct platform_device *pdev)
if (!IS_ERR_OR_NULL(tegra->transceiver))
otg_set_host(tegra->transceiver->otg, NULL);
#endif
fail_phy:
usb_phy_shutdown(hcd->phy);
fail_io:
clk_disable_unprepare(tegra->clk);
Expand Down

0 comments on commit d6bc68f

Please sign in to comment.