pwm: atmel-pwm: clock can not unprepare after successfully register
diff mbox

Message ID 1387424542-5864-1-git-send-email-voice.shen@atmel.com
State Accepted
Headers show

Commit Message

Bo Shen Dec. 19, 2013, 3:42 a.m. UTC
When the PWM controller is registered successfully, the clock can not
unprepare, so fix it.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
 drivers/pwm/pwm-atmel.c |    2 ++
 1 file changed, 2 insertions(+)

Comments

Thierry Reding Dec. 20, 2013, 9:50 a.m. UTC | #1
On Thu, Dec 19, 2013 at 11:42:22AM +0800, Bo Shen wrote:
> When the PWM controller is registered successfully, the clock can not
> unprepare, so fix it.
> 
> Signed-off-by: Bo Shen <voice.shen@atmel.com>
> ---
>  drivers/pwm/pwm-atmel.c |    2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks.

Thierry

Patch
diff mbox

diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c
index 657e90a..bf4144a 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;