projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc9774c
)
ARM: mxc: pwm: add clk_prepare/clk_unprepare
author
Richard Zhao
<richard.zhao@linaro.org>
Tue, 15 Nov 2011 06:47:59 +0000
(14:47 +0800)
committer
Sascha Hauer
<s.hauer@pengutronix.de>
Wed, 1 Feb 2012 13:27:59 +0000
(14:27 +0100)
It's for migrating to generic clk framework API.
Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/pwm.c
patch
|
blob
|
history
diff --git
a/arch/arm/plat-mxc/pwm.c
b/arch/arm/plat-mxc/pwm.c
index
e032717
..
c0cab22
100644
(file)
--- a/
arch/arm/plat-mxc/pwm.c
+++ b/
arch/arm/plat-mxc/pwm.c
@@
-132,7
+132,7
@@
int pwm_enable(struct pwm_device *pwm)
int rc = 0;
if (!pwm->clk_enabled) {
- rc = clk_enable(pwm->clk);
+ rc = clk_
prepare_
enable(pwm->clk);
if (!rc)
pwm->clk_enabled = 1;
}
@@
-145,7
+145,7
@@
void pwm_disable(struct pwm_device *pwm)
writel(0, pwm->mmio_base + MX3_PWMCR);
if (pwm->clk_enabled) {
- clk_disable(pwm->clk);
+ clk_disable
_unprepare
(pwm->clk);
pwm->clk_enabled = 0;
}
}