Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274124
b: refs/heads/master
c: d8633c1
h: refs/heads/master
v: v3
  • Loading branch information
Joonyoung Shim authored and Kukjin Kim committed Nov 6, 2011
1 parent df5485e commit de3cd50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8088041ee35604640760321621e3f058ea2c7061
refs/heads/master: d8633c1da161de7e0b880d919d305a97c01372f4
7 changes: 7 additions & 0 deletions trunk/arch/arm/plat-samsung/pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ static int s3c_pwm_probe(struct platform_device *pdev)
goto err_clk_tin;
}

clk_enable(pwm->clk);
clk_enable(pwm->clk_div);

local_irq_save(flags);

tcon = __raw_readl(S3C2410_TCON);
Expand Down Expand Up @@ -326,6 +329,8 @@ static int s3c_pwm_probe(struct platform_device *pdev)
return 0;

err_clk_tdiv:
clk_disable(pwm->clk_div);
clk_disable(pwm->clk);
clk_put(pwm->clk_div);

err_clk_tin:
Expand All @@ -340,6 +345,8 @@ static int __devexit s3c_pwm_remove(struct platform_device *pdev)
{
struct pwm_device *pwm = platform_get_drvdata(pdev);

clk_disable(pwm->clk_div);
clk_disable(pwm->clk);
clk_put(pwm->clk_div);
clk_put(pwm->clk);
kfree(pwm);
Expand Down

0 comments on commit de3cd50

Please sign in to comment.