projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e978a4
)
pwm: zx: Add missing cleanup in error path
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Tue, 13 Oct 2020 08:13:21 +0000
(10:13 +0200)
committer
Thierry Reding
<thierry.reding@gmail.com>
Thu, 17 Dec 2020 13:18:48 +0000
(14:18 +0100)
zx_pwm_probe() called clk_prepare_enable() before; this must be undone
in the error path.
Fixes: 4836193c435c ("pwm: Add ZTE ZX PWM device driver")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-zx.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-zx.c
b/drivers/pwm/pwm-zx.c
index 0f5e8919b034dc75cb0c3996ed70dfb3276170f6..34e91195ce9894cfda015745ad3b57fea2cc75cd 100644
(file)
--- a/
drivers/pwm/pwm-zx.c
+++ b/
drivers/pwm/pwm-zx.c
@@
-236,6
+236,7
@@
static int zx_pwm_probe(struct platform_device *pdev)
ret = pwmchip_add(&zpc->chip);
if (ret < 0) {
dev_err(&pdev->dev, "failed to add PWM chip: %d\n", ret);
+ clk_disable_unprepare(zpc->pclk);
return ret;
}