mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
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);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "failed to add PWM chip\n");
|
||||
clk_unprepare(chip->clk);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue