pwm: atmel-pwm: Do not unprepare clock after successful registration
authorBo Shen <voice.shen@atmel.com>
Thu, 19 Dec 2013 03:42:22 +0000 (11:42 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 20 Dec 2013 09:48:43 +0000 (10:48 +0100)
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>
drivers/pwm/pwm-atmel.c

index 657e90ab6e0a43956f27eea6e4072fa1f9bdfb1c..bf4144a14661bdeb00baedc628131a5a1c81e39e 100644 (file)
@@ -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;
This page took 0.025398 seconds and 5 git commands to generate.