Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269434
b: refs/heads/master
c: ac3e2fa
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Sep 27, 2011
1 parent c30ecc7 commit 8727d09
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 40d3e0f4942ec12c4521fe1b2a2b774164cd2c80
refs/heads/master: ac3e2fa6770052a82d42fc4db194a27317518c97
11 changes: 10 additions & 1 deletion trunk/drivers/amba/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,17 @@ static int amba_get_enable_pclk(struct amba_device *pcdev)
if (IS_ERR(pclk))
return PTR_ERR(pclk);

ret = clk_prepare(pclk);
if (ret) {
clk_put(pclk);
return ret;
}

ret = clk_enable(pclk);
if (ret)
if (ret) {
clk_unprepare(pclk);
clk_put(pclk);
}

return ret;
}
Expand All @@ -472,6 +480,7 @@ static void amba_put_disable_pclk(struct amba_device *pcdev)
struct clk *pclk = pcdev->pclk;

clk_disable(pclk);
clk_unprepare(pclk);
clk_put(pclk);
}

Expand Down

0 comments on commit 8727d09

Please sign in to comment.