projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/pwm/pwm-vt8500.c
b/drivers/pwm/pwm-vt8500.c
index 8141a498412645ac183d50e808e392b49041a0d6..3a78dd09ac81bb719e9179f4198c066d6e9a54fe 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;
}