aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-05-05 04:00:14 -0400
committerThierry Reding <thierry.reding@gmail.com>2017-07-25 07:43:28 -0400
commit0bd24f9b5b289aeb439bc4d29b54e3f3a6ea807c (patch)
treeec2c7bfec6be76d47a5ac1d2928a2b4f031bd6d9
parent0829326ab26ecc598985b6e456c045a15bd253e4 (diff)
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>
-rw-r--r--drivers/pwm/pwm-vt8500.c1
1 files changed, 1 insertions, 0 deletions
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)
241 ret = pwmchip_add(&chip->chip); 241 ret = pwmchip_add(&chip->chip);
242 if (ret < 0) { 242 if (ret < 0) {
243 dev_err(&pdev->dev, "failed to add PWM chip\n"); 243 dev_err(&pdev->dev, "failed to add PWM chip\n");
244 clk_unprepare(chip->clk);
244 return ret; 245 return ret;
245 } 246 }
246 247