diff options
author | Bo Shen <voice.shen@atmel.com> | 2013-12-18 22:42:22 -0500 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2013-12-20 04:48:43 -0500 |
commit | 6a6833563f58d6f162bef5753b3a053d51a61a56 (patch) | |
tree | 145aa0dbf5e0f090ed72bdf4b0a776af2f4c03e0 | |
parent | 3f958fe7d3e37d26d321fe4761a6787bf22446b3 (diff) |
pwm: atmel-pwm: Do not unprepare clock after successful registration
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>
-rw-r--r-- | drivers/pwm/pwm-atmel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c index 657e90ab6e0a..bf4144a14661 100644 --- a/drivers/pwm/pwm-atmel.c +++ b/drivers/pwm/pwm-atmel.c | |||
@@ -362,6 +362,8 @@ static int atmel_pwm_probe(struct platform_device *pdev) | |||
362 | 362 | ||
363 | platform_set_drvdata(pdev, atmel_pwm); | 363 | platform_set_drvdata(pdev, atmel_pwm); |
364 | 364 | ||
365 | return ret; | ||
366 | |||
365 | unprepare_clk: | 367 | unprepare_clk: |
366 | clk_unprepare(atmel_pwm->clk); | 368 | clk_unprepare(atmel_pwm->clk); |
367 | return ret; | 369 | return ret; |