Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303777
b: refs/heads/master
c: 3aa2ae7
h: refs/heads/master
i:
  303775: 50f097e
v: v3
  • Loading branch information
Russ Dill authored and Greg Kroah-Hartman committed May 5, 2012
1 parent e31bec2 commit c0b156f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 3cccc292524dfd5d77f38f52116b1da4864e3789
refs/heads/master: 3aa2ae74ba630ec9b98736d64aea8e4cb490861d
18 changes: 9 additions & 9 deletions trunk/drivers/usb/host/ehci-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,6 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)

ehci_reset(omap_ehci);

ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
if (ret) {
dev_err(dev, "failed to add hcd with err %d\n", ret);
goto err_add_hcd;
}

/* root ports should always stay powered */
ehci_port_power(omap_ehci, 1);

if (pdata->phy_reset) {
/* Hold the PHY in RESET for enough time till
* PHY is settled and ready
Expand All @@ -264,6 +255,15 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
gpio_set_value(pdata->reset_gpio_port[1], 1);
}

ret = usb_add_hcd(hcd, irq, IRQF_SHARED);
if (ret) {
dev_err(dev, "failed to add hcd with err %d\n", ret);
goto err_add_hcd;
}

/* root ports should always stay powered */
ehci_port_power(omap_ehci, 1);

return 0;

err_add_hcd:
Expand Down

0 comments on commit c0b156f

Please sign in to comment.