提交 6a683356 编写于 作者: B Bo Shen 提交者: Thierry Reding

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: NBo Shen <voice.shen@atmel.com>
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 3f958fe7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册