提交 0bd24f9b 编写于 作者: A Arvind Yadav 提交者: Thierry Reding

pwm: vt8500: Undo preparation of a clock source.

Undo preparation of a clock source if vt8500_pwm_probe() is not
successful.
Signed-off-by: NArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 0829326a
......@@ -241,6 +241,7 @@ static int vt8500_pwm_probe(struct platform_device *pdev)
ret = pwmchip_add(&chip->chip);
if (ret < 0) {
dev_err(&pdev->dev, "failed to add PWM chip\n");
clk_unprepare(chip->clk);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册