Commit 0bd24f9b authored by Arvind Yadav's avatar Arvind Yadav Committed by 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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment