From: Bo Shen Date: Thu, 19 Dec 2013 03:42:22 +0000 (+0800) Subject: pwm: atmel-pwm: Do not unprepare clock after successful registration X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6a6833563f58d6f162bef5753b3a053d51a61a56;p=deliverable%2Flinux.git 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 Signed-off-by: Thierry Reding --- 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;