projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0829326
)
pwm: vt8500: Undo preparation of a clock source.
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Fri, 5 May 2017 08:00:14 +0000
(13:30 +0530)
committer
Thierry Reding
<thierry.reding@gmail.com>
Tue, 25 Jul 2017 11:43:28 +0000
(13:43 +0200)
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>
drivers/pwm/pwm-vt8500.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-vt8500.c
b/drivers/pwm/pwm-vt8500.c
index
8141a49
..
3a78dd0
100644
(file)
--- 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;
}