Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316882
b: refs/heads/master
c: 984e974
h: refs/heads/master
v: v3
  • Loading branch information
Russ Dill authored and Greg Kroah-Hartman committed Jun 27, 2012
1 parent 2438eac commit 4aeddde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: a46af4ebf9ffec35eea0390e89935197b833dc61
refs/heads/master: 984e97483a143f95d861b7218161ae033df293ab
6 changes: 5 additions & 1 deletion trunk/drivers/usb/host/ehci-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
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;
goto err_pm_runtime;
}

/* root ports should always stay powered */
Expand Down Expand Up @@ -424,8 +424,12 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
clk_put(utmi_p1_fck);

err_add_hcd:
usb_remove_hcd(hcd);

err_pm_runtime:
disable_put_regulator(pdata);
pm_runtime_put_sync(dev);
usb_put_hcd(hcd);

err_io:
iounmap(regs);
Expand Down

0 comments on commit 4aeddde

Please sign in to comment.