Skip to content

Commit

Permalink
pwm: atmel-pwm: Do not unprepare clock after successful registration
Browse files Browse the repository at this point in the history
When the PWM controller is registered successfully, the clock can not
unprepare, so fix it.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
  • Loading branch information
Bo Shen authored and Thierry Reding committed Dec 20, 2013
1 parent 3f958fe commit 6a68335
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/pwm/pwm-atmel.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ static int atmel_pwm_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, atmel_pwm);

return ret;

unprepare_clk:
clk_unprepare(atmel_pwm->clk);
return ret;
Expand Down

0 comments on commit 6a68335

Please sign in to comment.