Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308229
b: refs/heads/master
c: 198ad2c
h: refs/heads/master
i:
  308227: d30891c
v: v3
  • Loading branch information
Sascha Hauer committed Apr 25, 2012
1 parent 5e0c032 commit b3cb89e
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: 97c3213fd9fc28c0e86b69df09f4228424cafecc
refs/heads/master: 198ad2cecde16ce309a65f2fddd5f6d3442f8250
18 changes: 9 additions & 9 deletions trunk/drivers/usb/host/ehci-mxc.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
ret = PTR_ERR(priv->usbclk);
goto err_clk;
}
clk_enable(priv->usbclk);
clk_prepare_enable(priv->usbclk);

if (!cpu_is_mx35() && !cpu_is_mx25()) {
priv->ahbclk = clk_get(dev, "usb_ahb");
if (IS_ERR(priv->ahbclk)) {
ret = PTR_ERR(priv->ahbclk);
goto err_clk_ahb;
}
clk_enable(priv->ahbclk);
clk_prepare_enable(priv->ahbclk);
}

/* "dr" device has its own clock on i.MX51 */
Expand All @@ -189,7 +189,7 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
ret = PTR_ERR(priv->phy1clk);
goto err_clk_phy;
}
clk_enable(priv->phy1clk);
clk_prepare_enable(priv->phy1clk);
}


Expand Down Expand Up @@ -266,16 +266,16 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev)
pdata->exit(pdev);
err_init:
if (priv->phy1clk) {
clk_disable(priv->phy1clk);
clk_disable_unprepare(priv->phy1clk);
clk_put(priv->phy1clk);
}
err_clk_phy:
if (priv->ahbclk) {
clk_disable(priv->ahbclk);
clk_disable_unprepare(priv->ahbclk);
clk_put(priv->ahbclk);
}
err_clk_ahb:
clk_disable(priv->usbclk);
clk_disable_unprepare(priv->usbclk);
clk_put(priv->usbclk);
err_clk:
iounmap(hcd->regs);
Expand Down Expand Up @@ -307,14 +307,14 @@ static int __exit ehci_mxc_drv_remove(struct platform_device *pdev)
usb_put_hcd(hcd);
platform_set_drvdata(pdev, NULL);

clk_disable(priv->usbclk);
clk_disable_unprepare(priv->usbclk);
clk_put(priv->usbclk);
if (priv->ahbclk) {
clk_disable(priv->ahbclk);
clk_disable_unprepare(priv->ahbclk);
clk_put(priv->ahbclk);
}
if (priv->phy1clk) {
clk_disable(priv->phy1clk);
clk_disable_unprepare(priv->phy1clk);
clk_put(priv->phy1clk);
}

Expand Down

0 comments on commit b3cb89e

Please sign in to comment.