From: Arvind Yadav Date: Fri, 5 May 2017 08:00:14 +0000 (+0530) Subject: pwm: vt8500: Undo preparation of a clock source. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0bd24f9b5b289aeb439bc4d29b54e3f3a6ea807c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-vt8500.c b/drivers/pwm/pwm-vt8500.c index 8141a4984126..3a78dd09ac81 100644 --- a/drivers/pwm/pwm-vt8500.c +++ b/drivers/pwm/pwm-vt8500.c @@ -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; }