1
0
Fork 0

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>
hifive-unleashed-5.1
Bo Shen 2013-12-19 11:42:22 +08:00 committed by Thierry Reding
parent 3f958fe7d3
commit 6a6833563f
1 changed files with 2 additions and 0 deletions

View 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;