Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313573
b: refs/heads/master
c: 20de12c
h: refs/heads/master
i:
  313571: 207dc5f
v: v3
  • Loading branch information
Prashant Gaikwad authored and Stephen Warren committed Jun 11, 2012
1 parent bc01dce commit aedd917
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: 1e674bc6689e9aca5bd4355d1f87093636ed1c02
refs/heads/master: 20de12ccf900d71eee1344adc7ae0dcd7db9b4ab
20 changes: 10 additions & 10 deletions trunk/drivers/usb/host/ehci-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ static void tegra_ehci_power_up(struct usb_hcd *hcd)
{
struct tegra_ehci_hcd *tegra = dev_get_drvdata(hcd->self.controller);

clk_enable(tegra->emc_clk);
clk_enable(tegra->clk);
clk_prepare_enable(tegra->emc_clk);
clk_prepare_enable(tegra->clk);
tegra_usb_phy_power_on(tegra->phy);
tegra->host_resumed = 1;
}
Expand All @@ -58,8 +58,8 @@ static void tegra_ehci_power_down(struct usb_hcd *hcd)

tegra->host_resumed = 0;
tegra_usb_phy_power_off(tegra->phy);
clk_disable(tegra->clk);
clk_disable(tegra->emc_clk);
clk_disable_unprepare(tegra->clk);
clk_disable_unprepare(tegra->emc_clk);
}

static int tegra_ehci_internal_port_reset(
Expand Down Expand Up @@ -671,7 +671,7 @@ static int tegra_ehci_probe(struct platform_device *pdev)
goto fail_clk;
}

err = clk_enable(tegra->clk);
err = clk_prepare_enable(tegra->clk);
if (err)
goto fail_clken;

Expand All @@ -682,7 +682,7 @@ static int tegra_ehci_probe(struct platform_device *pdev)
goto fail_emc_clk;
}

clk_enable(tegra->emc_clk);
clk_prepare_enable(tegra->emc_clk);
clk_set_rate(tegra->emc_clk, 400000000);

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
Expand Down Expand Up @@ -782,10 +782,10 @@ static int tegra_ehci_probe(struct platform_device *pdev)
fail_phy:
iounmap(hcd->regs);
fail_io:
clk_disable(tegra->emc_clk);
clk_disable_unprepare(tegra->emc_clk);
clk_put(tegra->emc_clk);
fail_emc_clk:
clk_disable(tegra->clk);
clk_disable_unprepare(tegra->clk);
fail_clken:
clk_put(tegra->clk);
fail_clk:
Expand Down Expand Up @@ -820,10 +820,10 @@ static int tegra_ehci_remove(struct platform_device *pdev)
tegra_usb_phy_close(tegra->phy);
iounmap(hcd->regs);

clk_disable(tegra->clk);
clk_disable_unprepare(tegra->clk);
clk_put(tegra->clk);

clk_disable(tegra->emc_clk);
clk_disable_unprepare(tegra->emc_clk);
clk_put(tegra->emc_clk);

kfree(tegra);
Expand Down

0 comments on commit aedd917

Please sign in to comment.