pwm: vt8500: Undo preparation of a clock source.
Undo preparation of a clock source if vt8500_pwm_probe() is not successful. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
parent
0829326ab2
commit
0bd24f9b5b
1 changed files with 1 additions and 0 deletions
|
@ -241,6 +241,7 @@ static int vt8500_pwm_probe(struct platform_device *pdev)
|
||||||
ret = pwmchip_add(&chip->chip);
|
ret = pwmchip_add(&chip->chip);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
dev_err(&pdev->dev, "failed to add PWM chip\n");
|
dev_err(&pdev->dev, "failed to add PWM chip\n");
|
||||||
|
clk_unprepare(chip->clk);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue