Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296022
b: refs/heads/master
c: c23c081
h: refs/heads/master
v: v3
  • Loading branch information
Richard Zhao authored and Sascha Hauer committed Feb 1, 2012
1 parent 6ebc74b commit f7ced24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: dc9774c996b06373f776081820219aae1dc46f45
refs/heads/master: c23c081a471b81e53707512d3aec553aaad52cc4
4 changes: 2 additions & 2 deletions trunk/arch/arm/plat-mxc/pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
}
Expand Down

0 comments on commit f7ced24

Please sign in to comment.