diff options
| author | Bo Shen <[email protected]> | 2013-12-19 03:42:22 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2013-12-20 09:48:43 +0000 |
| commit | 6a6833563f58d6f162bef5753b3a053d51a61a56 (patch) | |
| tree | 145aa0dbf5e0f090ed72bdf4b0a776af2f4c03e0 /drivers/pwm/pwm-atmel.c | |
| parent | of: Add Atmel PWM controller device tree binding (diff) | |
| download | kernel-6a6833563f58d6f162bef5753b3a053d51a61a56.tar.gz kernel-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 <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-atmel.c')
| -rw-r--r-- | drivers/pwm/pwm-atmel.c | 2 |
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; |
