Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269438
b: refs/heads/master
c: 52ca0f3
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Sep 27, 2011
1 parent 5f0b889 commit f738128
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 4b4851c65d926f46e208e4731409022d986a1355
refs/heads/master: 52ca0f3ab568497adeac217e4167b51d9b4d4884
9 changes: 8 additions & 1 deletion trunk/drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1160,10 +1160,14 @@ static int __devinit mmci_probe(struct amba_device *dev,
goto host_free;
}

ret = clk_enable(host->clk);
ret = clk_prepare(host->clk);
if (ret)
goto clk_free;

ret = clk_enable(host->clk);
if (ret)
goto clk_unprep;

host->plat = plat;
host->variant = variant;
host->mclk = clk_get_rate(host->clk);
Expand Down Expand Up @@ -1351,6 +1355,8 @@ static int __devinit mmci_probe(struct amba_device *dev,
iounmap(host->base);
clk_disable:
clk_disable(host->clk);
clk_unprep:
clk_unprepare(host->clk);
clk_free:
clk_put(host->clk);
host_free:
Expand Down Expand Up @@ -1398,6 +1404,7 @@ static int __devexit mmci_remove(struct amba_device *dev)

iounmap(host->base);
clk_disable(host->clk);
clk_unprepare(host->clk);
clk_put(host->clk);

if (host->vcc)
Expand Down

0 comments on commit f738128

Please sign in to comment.