Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bd24f9b authored by Arvind Yadav's avatar Arvind Yadav Committed by Thierry Reding
Browse files

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}