summaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-12-19 04:42:22 +0100
committerThierry Reding <thierry.reding@gmail.com>2013-12-20 10:48:43 +0100
commit6a6833563f58d6f162bef5753b3a053d51a61a56 (patch)
tree145aa0dbf5e0f090ed72bdf4b0a776af2f4c03e0 /drivers/pwm
parentof: Add Atmel PWM controller device tree binding (diff)
downloadlinux-6a6833563f58d6f162bef5753b3a053d51a61a56.tar.xz
linux-6a6833563f58d6f162bef5753b3a053d51a61a56.zip
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')
-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;