Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286864
b: refs/heads/master
c: 6813463
h: refs/heads/master
v: v3
  • Loading branch information
Jean-Christophe PLAGNIOL-VILLARD authored and Nicolas Ferre committed Jan 20, 2012
1 parent 8fd0f5a commit 3f564c0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 08a52e1bef7974176520df4ece9aafcf7c7d9ac3
refs/heads/master: 6813463cebf25089053cbe25245d15908f896716
18 changes: 18 additions & 0 deletions trunk/drivers/usb/host/ohci-at91.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,23 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver,
}

iclk = clk_get(&pdev->dev, "ohci_clk");
if (IS_ERR(iclk)) {
dev_err(&pdev->dev, "failed to get ohci_clk\n");
retval = PTR_ERR(iclk);
goto err3;
}
fclk = clk_get(&pdev->dev, "uhpck");
if (IS_ERR(fclk)) {
dev_err(&pdev->dev, "failed to get uhpck\n");
retval = PTR_ERR(fclk);
goto err4;
}
hclk = clk_get(&pdev->dev, "hclk");
if (IS_ERR(hclk)) {
dev_err(&pdev->dev, "failed to get hclk\n");
retval = PTR_ERR(hclk);
goto err5;
}

at91_start_hc(pdev);
ohci_hcd_init(hcd_to_ohci(hcd));
Expand All @@ -153,9 +168,12 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver,
at91_stop_hc(pdev);

clk_put(hclk);
err5:
clk_put(fclk);
err4:
clk_put(iclk);

err3:
iounmap(hcd->regs);

err2:
Expand Down

0 comments on commit 3f564c0

Please sign in to comment.