* [PATCH v1] pwm : pwm-vt8500 - Undo preparation of a clock source.
@ 2017-05-05 8:00 Arvind Yadav
2017-07-25 11:44 ` Thierry Reding
0 siblings, 1 reply; 2+ messages in thread
From: Arvind Yadav @ 2017-05-05 8:00 UTC (permalink / raw)
To: linux-arm-kernel
Undo preparation of a clock source, if vt8500_pwm_probe is not
successful.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
drivers/pwm/pwm-vt8500.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pwm/pwm-vt8500.c b/drivers/pwm/pwm-vt8500.c
index 8141a49..3a78dd0 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;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-25 11:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-05 8:00 [PATCH v1] pwm : pwm-vt8500 - Undo preparation of a clock source Arvind Yadav
2017-07-25 11:44 ` Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).