projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40d3e0f
)
clk: amba bus: convert to clk_prepare()/clk_unprepare()
author
Russell King
<rmk+kernel@arm.linux.org.uk>
Thu, 22 Sep 2011 11:20:55 +0000
(12:20 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Tue, 27 Sep 2011 08:25:51 +0000
(09:25 +0100)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/amba/bus.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/amba/bus.c
b/drivers/amba/bus.c
index 84bdaace56c86856422c0b48640c2ae3a4c519ce..bd230e8011311c3298492018617853672016b86d 100644
(file)
--- a/
drivers/amba/bus.c
+++ b/
drivers/amba/bus.c
@@
-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;
}
@@
-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);
}