diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-05-05 13:30:14 +0530 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2017-07-25 13:43:28 +0200 |
commit | 0bd24f9b5b289aeb439bc4d29b54e3f3a6ea807c (patch) | |
tree | ec2c7bfec6be76d47a5ac1d2928a2b4f031bd6d9 /drivers/pwm | |
parent | 0829326ab26ecc598985b6e456c045a15bd253e4 (diff) | |
download | blackbird-op-linux-0bd24f9b5b289aeb439bc4d29b54e3f3a6ea807c.tar.gz blackbird-op-linux-0bd24f9b5b289aeb439bc4d29b54e3f3a6ea807c.zip |
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-vt8500.c | 1 |
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) ret = pwmchip_add(&chip->chip); if (ret < 0) { dev_err(&pdev->dev, "failed to add PWM chip\n"); + clk_unprepare(chip->clk); return ret; } |