mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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>
This commit is contained in:
parent
3f958fe7d3
commit
6a6833563f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue