summaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-atmel.c
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-12-19 11:42:22 +0800
committerThierry Reding <thierry.reding@gmail.com>2013-12-20 10:48:43 +0100
commit6a6833563f58d6f162bef5753b3a053d51a61a56 (patch)
tree145aa0dbf5e0f090ed72bdf4b0a776af2f4c03e0 /drivers/pwm/pwm-atmel.c
parent3f958fe7d3e37d26d321fe4761a6787bf22446b3 (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>
Diffstat (limited to 'drivers/pwm/pwm-atmel.c')
-rw-r--r--drivers/pwm/pwm-atmel.c2
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)
platform_set_drvdata(pdev, atmel_pwm);
+ return ret;
+
unprepare_clk:
clk_unprepare(atmel_pwm->clk);
return ret;